Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scope_Identity
Message
De
09/03/2010 02:33:41
 
 
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:
01453364
Vues:
46
Dilema over, I now have the routine working as expected

My VFP code looks like:

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

My SQL Server code looks like:

ALTER procedure [dbo].[Candidate_Insert_Blank] (@CreatedByID int, @lnCandidateID int output)

as
begin
set nocount on;
insert into Candidate (CreatedByID)
values (@CreatedByID)
set @lnCandidateID = scope_identity()
end
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform