Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a SQL Server SP as a method of the conn object
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Calling a SQL Server SP as a method of the conn object
Divers
Thread ID:
00901367
Message ID:
00901367
Vues:
54
Hi all, I'm trying to call a SQL Server stored procedure as a method of the connection object using ADO. I've modified the code in

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/mdconstoredprocasmethodonconnection.asp

to satisfay my needs but I'm having problems passing more than one parameter at a time. Here's the code I'm using to pass the parameters
 Dimension arParameters(2)
 arParameters(1)='1'
 arParameters(2)='1'
 orsResults=oConnection.Execute(@arParameters)
but I'm getting an error message saying the second parameter has not been specified. I've tried this code with a procedure that only needs one parameter and it works.

Any help is appreciated!

EGB
I'm a mixture of Albert Einstein and Arnold Schwarzenegger. The only trouble is that I got Einstein's body and Schwarzenegger's brain
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform