mparkhouse
Starting Member
5 Posts |
Posted - 2010-03-07 : 19:37:17
|
I left out the END for the whole procedure. I copied it incorrectly. I have the following code in a stored proc:CREATE PROCEDURE rcr_insertResident -- Add the parameters for the stored procedure here @Identifier_Type char(2), @Identifier varchar(30), @Full_Name varchar(80), @Suffix varchar(4), @DOB datetime, @DL_Number varchar(30), @DL_State varchar(2), @Change_User varchar(10), @Change_date datetime, @Change_PropID varchar(10)ASBEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; -- Insert statements for procedure here insert Resident (Identifier_Type, Identifier, Full_Name, Suffix, DOB, DL_Number, DL_State, Change_User, Change_date, Change_PropID) values (@Identifier_Type, @Identifier, @Full_Name, @Suffix, @DOB, @DL_Number, @DL_State, @Change_User, @Change_date, @Change_PropID) select SCOPE_IDENTITY()GOWhen I try to build the stored proc, I get the following error:Msg 102, Level 15, State 1, Procedure rcr_insertResident, Line 40Incorrect syntax near ')'.The table Resident has one identity field Resident_Key which is also the primary key.I've looked around the web and can't find a reason why this isn't working.Thanks in advance. |
|