Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scope_Identity
Message
From
08/03/2010 13:53:29
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Environment versions
SQL Server:
SQL Server 2005
Application:
Desktop
Miscellaneous
Thread ID:
01453233
Message ID:
01453239
Views:
33
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform