Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scope_Identity
Message
De
08/03/2010 13:53:29
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Versions des environnements
SQL Server:
SQL Server 2005
Application:
Desktop
Divers
Thread ID:
01453233
Message ID:
01453239
Vues:
34
The issue is that when I run that stored procedure, from VFP, no record is being inserted into the table and no value is being returned to VFP.

The native VFP command is:

lnReturnCode = SQLExec(lnConnectionID, 'exec Candidate_Insert_Blank ?1000000001', '@lnCandidateID')

I know the stored procedure works, as does the VFP code, as if I removed the line 'set @CandidateID = cast(scope_identity() as int)' from my stored procedure then a new record is added as normal.

Regards
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform