Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling SQL Stored Procedures via VFP7
Message
From
18/06/2002 10:23:01
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00669327
Message ID:
00669726
Views:
13
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform