Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Server Stored Procs
Message
 
 
To
24/03/1999 22:32:14
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00201705
Message ID:
00201780
Views:
13
This code addresses the issue of getting the return value. However, it does nto address trapping the values of any Output Parameters. See my response to Curtis which I copied you on for details...

>>I'm trying to run a stored procedure on SQL Server and get back a return value and the value of a parameter that has been changed. The problem with this is that I can see how to do this in Transact SQL, but I'm not doing too well in VFP6.
>>
>>Can anyone tell me how to do this and/or point me to a good reference on how to do these things?
>>
>>TIA,
>
>lcParam1 = Value1
>lcParam2 = Value2
>lcProcedure = "Exec SP_ProcedureName ?lcParam1, ?lcParam2"
>lnResult = sqlexec(SqlHandleNo, lcProcedure, "MyCursor")
>if lnResult < 0
> Messagebox("No data selected . Connection Falure", 64, thisform.caption)
> return
>endif
Previous
Reply
Map
View

Click here to load this message in the networking platform