Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing variable to SQL stored procedure
Message
De
07/10/2005 05:00:23
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
06/10/2005 14:19:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
01056877
Message ID:
01057069
Vues:
15
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform