Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why I prefer stored procs
Message
De
15/06/2007 17:41:48
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01232867
Message ID:
01233671
Vues:
12
>Cetin,
>
>It can be done even simpler with SQL Server OLE DB provider in VFP
>
>WITH This.oCommand
>  .CommandType = ADCMDSTOREDPROC
>  .CommandText = <Name of a stored procedure>
>  .Parameters.Refresh
>  * Now Parameters collection is populated with stored procedure parameters
>  FOR Each loPrm In .Parameters
>    ...
>  ENDFOR
>ENDWITH
>
>
>>This wouldn't work if you use a generic driver like OleDb, no?

Sergey,
I know that but that is not what I meant. I wanted to say with some mechanism to query parameters (like ADO had it as in your sample for years or schema query/reflection) it wouldn't work with just relying on named parameters.
PS: Specifically talking about .Net OleDbCommand.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform