Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why I prefer stored procs
Message
From
15/06/2007 17:41:48
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01232867
Message ID:
01233671
Views:
15
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform