set ANSI_NULLS ONset QUOTED_IDENTIFIER ONGOALTER PROCEDURE [dbo].[ProcUpdateDesignation](@Name nvarchar(50),@AnnualLeaveMax int,@SickLeaveMax int,@EntryDate datetime,@UpdatedDate datetime,@Original_DesigIndex int,@Original_Name nvarchar(50),@Original_AnnualLeaveMax int,@Original_SickLeaveMax int,@Original_EntryDate datetime,@Original_UpdatedDate datetime)ASSET NOCOUNT OFF;UPDATE [tblDesignations] SET [Name] = @Name, [AnnualLeaveMax] = @AnnualLeaveMax, [SickLeaveMax] = @SickLeaveMax, [EntryDate] = @EntryDate, [UpdatedDate] = @UpdatedDate WHERE ([DesigIndex] = @Original_DesigIndex AND [Name] = @Original_NameAND [AnnualLeaveMax] = @Original_AnnualLeaveMaxAND [SickLeaveMax] = @Original_SickLeaveMaxAND [EntryDate] = @Original_EntryDate AND [UpdatedDate] = @Original_UpdatedDate)