I\'ve written a VBScript function to call a stored procedure. In the past, I\'ve written a number of functions calling stored procedures with input parameters, but in this
You should return the value of your output parameter:
checkAccess = cmd.Parameters("@IsAllowed").Value
Also, output parameters in ADO don't require an initial value and adBoolean parameters don't require a size, so you could change your the last paramter to:
cmd.Parameters.Append(cmd.CreateParameter("@IsAllowed", adBoolean, adParamOutput))
You could also get rid of your isAllowed variable since it is no longer necessary.