Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why I prefer stored procs
Message
De
15/06/2007 18:01:40
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
15/06/2007 17:57:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01232867
Message ID:
01233677
Vues:
9
>This wouldn't work if you use a generic driver like OleDb, no?
>
>Hi, Cetin,
>
>Off the top of my head, I'm not sure. I'll try it with both the ole provider, as well as the provider factory in ADO2, and I'll let you know
>
>Kevin

Oh sorry I should give the answer (it was a question with reply in it):
From documentation
"The OLE DB .NET Provider does not support named parameters for passing parameters to an SQL statement or a stored procedure called by an OleDbCommand when CommandType is set to Text."
PS: when commandtype is set to text. With Stored procedures case is nt exactly same but still do not work for all providers.

Update:

"When using parameters with an OleDbCommand or OdbcCommand, the order of the parameters added to the Parameters collection must match the order of the parameters defined in your stored procedure. The .NET Framework Data Provider for OLE DB and .NET Framework Data Provider for ODBC treat parameters in a stored procedure as placeholders and apply parameter values in order. In addition, return value parameters must be the first parameters added to the Parameters collection."
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform