Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How Do I Create This Procedure?
Message
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
01116731
Message ID:
01116766
Views:
26
nResult = SQLEXEC(iConnHandle, "EXEC gen_new_id ?@nKey")
>Ok, I have the SP correct now.
>
>Here's my code. SQL is returning 'Incorrect syntax near 'gen_new_id'.'
>
>
>sSqlConnStr = "DRIVER=SQL Server;SERVER=dserver3;database=newmegadb;uid=sa;password="
>
>iConnHandle = SQLSTRINGCONNECT(sSqlConnStr)
>
>IF iConnHandle > 0
>
>  nKey = 0
>  nResult = SQLEXEC(iConnHandle, "gen_new_id ?@nKey")
>
>  IF nResult < 0
>    AERROR(aErrInfo)
>    MESSAGEBOX(aErrInfo[2])
>  ELSE
>    ? nKey
>  ENDIF
>
>SQLDISCONNECT(iConnHandle)
>
>ELSE
>	? "Not connected"
>ENDIF
>
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform