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:
01396150
Views:
70
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
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform