Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing variable to SQL stored procedure
Message
From
07/10/2005 05:00:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
06/10/2005 14:19:51
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
01056877
Message ID:
01057069
Views:
14
>There is a call to SQL stored procedure from VFP:
>
>lcDrv_CD = "1001"
>loRS = oData.oConn.Execute("usp_dsp_TooLate2AddInvoice '" + lcDrv_CD + "'")
>?loRS.Fields(0).Value
>
>
>Is there a way to pass variable directly? Something like:
>
>loRS = oData.oConn.Execute("usp_dsp_TooLate2AddInvoice ?lcDrv_CD")
>
>or similar?
>
>I've tried several ways but could not find correct one.
>
>Thanks.

Check Re: VFP/ADO/SQL stored procedure syntax Thread #1056781 Message #1057068
inParm.Value = "France"
rs1 = cmd.Execute

inParm.Value = "USA"
rs2 = cmd.Execute
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