A
Adam Knight
Hi all,
I am wanting to get a stored procedure return value via ADO.NET..
Code: Below:
I am wanting to get a stored procedure return value via ADO.NET..
Code: Below:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htmBaileys said:Adam,
try adding the following code:
Dim returnValue as SqlParameter = New SqlParameter()
returnValue.Direction = ParameterDirection.ReturnValue
cmdInsertContractor.Parameters.Add(returnValue)
' Execute sp here
' After execution, you can read the returncode from returnValue
Console.WriteLine(string.Format("ReturnValue: {0}", returnValue.Value))
check out
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.