Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling SQL Stored Procedures via VFP7
Message
De
18/06/2002 10:23:01
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00669327
Message ID:
00669726
Vues:
12
>Hi Dan,
>
>Here's how it can be done.
cTablename = "Myatable"
>cYear = ""
>? Sqlexec(lnSQLHandle, [EXEC uspGetMaxYear ?cTablename, ?@cYear])
Notice, that the first parameter '?cTablename' is input parameter and the second '?@cYear' is output parameter.
>
>>To All,
>>
>>I have a stored procedure in SQL 2000:
>>uspGetMaxYear @strTable CHAR(20),@strYear CHAR(4) OUTPUT
>>
>>What is the proper syntax in VFP7 SQLPassthrough?
>>SQLEXEC(lnSQLHandle,?)
>>
>>TIA,
>>
>>Dan Rhymes

Thanks Sergey. That did the trick.

I knew I had to be missing elements of the syntax - @ and ?.

Dan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform