Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 Other Topics
 Need your ADO advice.

Author  Topic 

tad
Starting Member

31 Posts

Posted - 2002-06-07 : 11:38:52
What is the correct method and sequence of events to have ado execute a parameterized sp, check the return_value of the sp and get the output parameters from the sp in a VB application.

If you have time, could you post an example using the pubs or northwind database.

Thanks.

setbasedisthetruepath
Used SQL Salesman

992 Posts

Posted - 2002-06-07 : 13:27:53
quote:

What is the correct method and sequence of events to have ado execute a parameterized sp, check the return_value of the sp and get the output parameters from the sp in a VB application.



to return output parameters or the return parameter you have to use the ADO command object. make sure the first parameter you add to the object's parameters collection is the return parameter.

setBasedIsTheTruepath
<O>
Go to Top of Page

Doug G
Constraint Violating Yak Guru

331 Posts

Posted - 2002-06-09 : 22:53:17
This article covers most of the bases pretty well.

http://www.asp101.com/articles/wrox/asp30/26100903.asp



======
Doug G
======
Go to Top of Page
   

- Advertisement -