booboo0912
Programmer
I'm testing my SP to see if my values are being returned...but I'm getting blank/nothing/zilch/nada. So I decided to test if setting the param equal to a string, then returning it in my asp code would work...seems like it should, but it doesn't!
Here's my SP (modified):
Create Procedure addItem
@Name varchar OUTPUT
As
Set Nocount On
Set @Name = 'hi there'
Return @Name
My code for the parameter is:
cmd.Parameters.Append cmd.CreateParameter("@Name",adVarChar,adParamOutput,50)
Then to output value:
dim test
test = cmd.Parameters("@Name"
.Value
Response.Write test
Why isn't "hi there" being returned?
Thanks!!!!!
Here's my SP (modified):
Create Procedure addItem
@Name varchar OUTPUT
As
Set Nocount On
Set @Name = 'hi there'
Return @Name
My code for the parameter is:
cmd.Parameters.Append cmd.CreateParameter("@Name",adVarChar,adParamOutput,50)
Then to output value:
dim test
test = cmd.Parameters("@Name"
Response.Write test
Why isn't "hi there" being returned?
Thanks!!!!!