Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stored Procedures / Sql Pass-through Problem
Message
 
 
To
10/04/2002 11:17:27
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00643206
Message ID:
00643295
Views:
11
I think there's mismatch between SP parameters and parameters you're passing. Use Strtofile function to write lcStr variable to a file, open the file in VFP editor and than compare it to the order of parameters SP expects. Also, it's customary to use [] as the string delimiters when dynamicaly building strings. That allows to use quote and double quote inside such string and make code easier to read.
lcStr = lcStr + ['SA']
>>Can you post the code that shows how you call SP and pass parameters?
>
>
>Here's a code snippet :
>
>
>* Connect to DS
>lnConnection=SQLConnect("dimensions","Sa","Sa")
>
>* Name of stored procedure
>lcStr="AA_SL_ACCOUNT_INSERT_EDIT_S "
>
>* Numeric, I think this is causing the problem, This field is a tinyint in *SQL
>lcStr=lcStr+"1"+","
>
>&& String
>lcStr=lcStr+Chr(34)+'SA'+Chr(34)
>* Actual code has about 80 params
>* but they are all structured like the two above
>
>lnresult = SQLExec(lnConnection)
>
>lnResult = SQLDisconnect(lnconnection)
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform