Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling stored procedure
Message
General information
Forum:
Visual Basic
Category:
SQL Server
Miscellaneous
Thread ID:
00667457
Message ID:
00667662
Views:
16
>I need to call a stored procedure and pass it three parameters as follows:
>
>CREATE PROCEDURE dbo.sp_VarianceReport
> @UserName Varchar (50),
> @SortOrder Varchar (25),
> @ReportDate smalldatetime
>
>What is the VB6 syntax to open up the recordset that this SP generates?

It could be as simple as this: (assumming that you have an open connection to your db)
Set myRS as New ADODB.Recordset
myCn.sp_VarianceReport "user", "sortfield", #6/12/02#, myRS
This using the connection object's ability to call an sp as if it was a method. The other option is to use an ADO command object.
Previous
Reply
Map
View

Click here to load this message in the networking platform