Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How Do I Create This Procedure?
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
01116731
Message ID:
01116766
Vues:
28
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform