I have a stored procedure which returns an integer value.
Can I return a varchar instead of int ? Is there any way to return the varchar value to the calling procedures?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ve got a couple of options:
Either use output parameters:
http://msdn.microsoft.com/en-us/library/ms378108.aspx
or just
selectthe varchar value at the end to return the data in a one-line/one-field table.