G
Guest
Hi
I am having problems with my stored procedure. i keep getting a message stating that the stored procedure 'InsClientAndSelIdentity' expects a parameter @Identity
the thing is i have declared it in my sproc below!!! I dont understand what i am doin wrong
Do i need to write anything in my code as well? i.e assign a value to the Identity
I thought that as it is an output parameter i will not have to
Can anyone plz help me
ALTER PROCEDURE dbo.InsClientAndSelIdentit
@Surname char(50)
@Forename char(50)
@OrgName varchar(50)
@Address varchar(300)
@Postcode varchar(50)
@PhoneNo varchar(25)
@Identity int OU
A
SET NOCOUNT OFF
INSERT INTO Client(Surname, Forename, OrgName, Address, Postcode, PhoneNo) VALUES (@Surname, @Forename, @OrgName, @Address, @Postcode, @PhoneNo)
SET @Identity = SCOPE_IDENTITY()
Return
I am having problems with my stored procedure. i keep getting a message stating that the stored procedure 'InsClientAndSelIdentity' expects a parameter @Identity
the thing is i have declared it in my sproc below!!! I dont understand what i am doin wrong
Do i need to write anything in my code as well? i.e assign a value to the Identity
I thought that as it is an output parameter i will not have to
Can anyone plz help me
ALTER PROCEDURE dbo.InsClientAndSelIdentit
@Surname char(50)
@Forename char(50)
@OrgName varchar(50)
@Address varchar(300)
@Postcode varchar(50)
@PhoneNo varchar(25)
@Identity int OU
A
SET NOCOUNT OFF
INSERT INTO Client(Surname, Forename, OrgName, Address, Postcode, PhoneNo) VALUES (@Surname, @Forename, @OrgName, @Address, @Postcode, @PhoneNo)
SET @Identity = SCOPE_IDENTITY()
Return