General information
Forum:
Microsoft SQL Server
Environment versions
SQL Server:
SQL Server 2005
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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only