Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling stored procedure
Message
Information générale
Forum:
Visual Basic
Catégorie:
SQL Server
Divers
Thread ID:
00667457
Message ID:
00667662
Vues:
15
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform