Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling SQL Stored Procedures via VFP7
Message
 
 
To
17/06/2002 13:15:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00669327
Message ID:
00669338
Views:
11
This message has been marked as the solution to the initial question of the thread.
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
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform