Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Call SQL Stored Proc With Output Param
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01396149
Message ID:
01396152
Views:
59
And I took out the OUTPUT, and it works

Thanks!



>If parameter isn't OUTPUT, don't pass by reference
>sCommand = "exec ap_GetPartIdByPartNo ?sPartNo, ?@iPartId OUTPUT "
>
>>I can't seem to get this to work. SQL is returning Syntax Error:
>>
>>
>>SELECT Import
>>SCAN
>>
>>	sPartNo = ALLTRIM(Import.PartNo)
>>	iPartId = 0
>>	
>>	sCommand = "exec ap_GetPartIdByPartNo ?@sPartNo, ?@iPartId OUTPUT "
>>	iResult = SQLEXEC(iConnHandle , sCommand)
>>
>>	IF iResult < 0
>>		AERROR(ArrayName)
>>	ENDIF
>>
>>ENDSCAN
>>
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform