IF EXISTS (SELECT * FROM dbo.SysObjects WHERE id = object_id(N'dbo.AUDIT_upd_ProductPrice') AND OBJECTPROPERTY(id, N'IsTrigger') = 1) DROP TRIGGER dbo.AUDIT_upd_ProductPrice 
GO
CREATE TRIGGER [dbo].[AUDIT_upd_ProductPrice]
ON [dbo].[ProductPrice] FOR UPDATE NOT FOR REPLICATION AS
BEGIN
	
	DECLARE @FiscalSweden INT
	SELECT @FiscalSweden = COUNT(*) 
	FROM dbo.HotelSetup h WITH (NOLOCK) 
	INNER JOIN HotelSetupValueXTab vx WITH (NOLOCK) ON vx.HotelSetupNumber = h.HotelSetupNumber AND UPPER(h.SearchKey) = UPPER('FiscalPrinterSweden')
	INNER JOIN HotelSetupValue v WITH (NOLOCK) ON vx.fk_ValueNumber = v.Pk_ValueNumber
	WHERE v.KeyValue = '1'
	IF ISNULL(@FiscalSweden, 0) = 0
		RETURN
	

	DECLARE 
		@IDENTITY_SAVE			varchar(50),
		@AUDIT_LOG_TRANSACTION_ID	Int,
		@PRIM_KEY			nvarchar(4000),
		@Inserted	    		bit,
 		@ROWS_COUNT				int,
		@FK_UserIdNumber INT,
		@FK_CashBox INT,
		@ProgramPart SMALLINT,
		@TerminalName VARCHAR(50),
		@SystemDateStr VARCHAR(8),
		@SystemDateTime DATETIME

	SET NOCOUNT ON

	Select @ROWS_COUNT=count(*) from inserted
	SET @IDENTITY_SAVE = CAST(IsNull(@@IDENTITY,1) AS varchar(50))

    SELECT TOP 1 @FK_UserIdNumber = FK_UserIdNumber,
	@FK_CashBox = FK_CashBox,
	@ProgramPart = ProgramPart,
	@TerminalName = TerminalName
	FROM PersonnelLogInfo WITH (NOLOCK)
	WHERE spid = @@spid 
	ORDER BY CreateDate DESC

	IF ISNULL(@FK_UserIdNumber, 0) = 0
	  SET @FK_UserIdNumber = 1
	IF ISNULL(@FK_CashBox, -1) <= 0
	  SET @FK_CashBox = -1
	IF ISNULL(@ProgramPart, -1) <= 0
	  SET @ProgramPart = 14 -- ppUnknown from SystemAll
	IF ISNULL(@TerminalName, '') = ''
	  SET @TerminalName = 'Unknown'

    SELECT @SystemDateStr = SystemDate FROM System WITH (NOLOCK) WHERE Number = 1
    SET @SystemDateTime = CONVERT(DATETIME, @SystemDateStr + ' ' + CONVERT(CHAR(8), CURRENT_TIMESTAMP, 108))

	INSERT INTO dbo.AUDIT_LOG_TRANSACTIONS
	(
		TABLE_NAME,
		TABLE_SCHEMA,
		AUDIT_ACTION_ID,
		HOST_NAME,
		APP_NAME,
		MODIFIED_BY,
		MODIFIED_DATE,
		AFFECTED_ROWS,
		FK_UserIdNumber,
		FK_CashBox,
		ProgramPart,
		TerminalName,
		RealDateTime
	)
	values(
		'ProductPrice',
		'dbo',
		1,	--	ACTION ID For UPDATE
		CASE 
		  WHEN LEN(HOST_NAME()) < 1 THEN ' '
		  ELSE HOST_NAME()
		END,
		CASE 
		  WHEN LEN(APP_NAME()) < 1 THEN ' '
		  ELSE APP_NAME()
		END,
		SUSER_SNAME(),
		@SystemDateTime,
		@ROWS_COUNT,
		@FK_UserIdNumber,
		@FK_CashBox,
		@ProgramPart,
		@TerminalName,
		GETDATE()
	)	
	
	Set @AUDIT_LOG_TRANSACTION_ID = SCOPE_IDENTITY()
	
	SET @Inserted = 0
	
	If UPDATE([AdultPrice1])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultPrice1',
			CONVERT(nvarchar(4000), OLD.[AdultPrice1], 2),
			CONVERT(nvarchar(4000), NEW.[AdultPrice1], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultPrice1] <>
					OLD.[AdultPrice1]
				) Or
			
				(
					NEW.[AdultPrice1] Is Null And
					OLD.[AdultPrice1] Is Not Null
				) Or
				(
					NEW.[AdultPrice1] Is Not Null And
					OLD.[AdultPrice1] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultPrice2])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultPrice2',
			CONVERT(nvarchar(4000), OLD.[AdultPrice2], 2),
			CONVERT(nvarchar(4000), NEW.[AdultPrice2], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultPrice2] <>
					OLD.[AdultPrice2]
				) Or
			
				(
					NEW.[AdultPrice2] Is Null And
					OLD.[AdultPrice2] Is Not Null
				) Or
				(
					NEW.[AdultPrice2] Is Not Null And
					OLD.[AdultPrice2] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultPrice3])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultPrice3',
			CONVERT(nvarchar(4000), OLD.[AdultPrice3], 2),
			CONVERT(nvarchar(4000), NEW.[AdultPrice3], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultPrice3] <>
					OLD.[AdultPrice3]
				) Or
			
				(
					NEW.[AdultPrice3] Is Null And
					OLD.[AdultPrice3] Is Not Null
				) Or
				(
					NEW.[AdultPrice3] Is Not Null And
					OLD.[AdultPrice3] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultPrice4])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultPrice4',
			CONVERT(nvarchar(4000), OLD.[AdultPrice4], 2),
			CONVERT(nvarchar(4000), NEW.[AdultPrice4], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultPrice4] <>
					OLD.[AdultPrice4]
				) Or
			
				(
					NEW.[AdultPrice4] Is Null And
					OLD.[AdultPrice4] Is Not Null
				) Or
				(
					NEW.[AdultPrice4] Is Not Null And
					OLD.[AdultPrice4] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultPrice5])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultPrice5',
			CONVERT(nvarchar(4000), OLD.[AdultPrice5], 2),
			CONVERT(nvarchar(4000), NEW.[AdultPrice5], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultPrice5] <>
					OLD.[AdultPrice5]
				) Or
			
				(
					NEW.[AdultPrice5] Is Null And
					OLD.[AdultPrice5] Is Not Null
				) Or
				(
					NEW.[AdultPrice5] Is Not Null And
					OLD.[AdultPrice5] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultPrice6])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultPrice6',
			CONVERT(nvarchar(4000), OLD.[AdultPrice6], 2),
			CONVERT(nvarchar(4000), NEW.[AdultPrice6], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultPrice6] <>
					OLD.[AdultPrice6]
				) Or
			
				(
					NEW.[AdultPrice6] Is Null And
					OLD.[AdultPrice6] Is Not Null
				) Or
				(
					NEW.[AdultPrice6] Is Not Null And
					OLD.[AdultPrice6] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultPrice7])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultPrice7',
			CONVERT(nvarchar(4000), OLD.[AdultPrice7], 2),
			CONVERT(nvarchar(4000), NEW.[AdultPrice7], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultPrice7] <>
					OLD.[AdultPrice7]
				) Or
			
				(
					NEW.[AdultPrice7] Is Null And
					OLD.[AdultPrice7] Is Not Null
				) Or
				(
					NEW.[AdultPrice7] Is Not Null And
					OLD.[AdultPrice7] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultPrice8])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultPrice8',
			CONVERT(nvarchar(4000), OLD.[AdultPrice8], 2),
			CONVERT(nvarchar(4000), NEW.[AdultPrice8], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultPrice8] <>
					OLD.[AdultPrice8]
				) Or
			
				(
					NEW.[AdultPrice8] Is Null And
					OLD.[AdultPrice8] Is Not Null
				) Or
				(
					NEW.[AdultPrice8] Is Not Null And
					OLD.[AdultPrice8] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultPrice9])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultPrice9',
			CONVERT(nvarchar(4000), OLD.[AdultPrice9], 2),
			CONVERT(nvarchar(4000), NEW.[AdultPrice9], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultPrice9] <>
					OLD.[AdultPrice9]
				) Or
			
				(
					NEW.[AdultPrice9] Is Null And
					OLD.[AdultPrice9] Is Not Null
				) Or
				(
					NEW.[AdultPrice9] Is Not Null And
					OLD.[AdultPrice9] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1Price1])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1Price1',
			CONVERT(nvarchar(4000), OLD.[Children1Price1], 2),
			CONVERT(nvarchar(4000), NEW.[Children1Price1], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1Price1] <>
					OLD.[Children1Price1]
				) Or
			
				(
					NEW.[Children1Price1] Is Null And
					OLD.[Children1Price1] Is Not Null
				) Or
				(
					NEW.[Children1Price1] Is Not Null And
					OLD.[Children1Price1] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1Price2])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1Price2',
			CONVERT(nvarchar(4000), OLD.[Children1Price2], 2),
			CONVERT(nvarchar(4000), NEW.[Children1Price2], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1Price2] <>
					OLD.[Children1Price2]
				) Or
			
				(
					NEW.[Children1Price2] Is Null And
					OLD.[Children1Price2] Is Not Null
				) Or
				(
					NEW.[Children1Price2] Is Not Null And
					OLD.[Children1Price2] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1Price3])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1Price3',
			CONVERT(nvarchar(4000), OLD.[Children1Price3], 2),
			CONVERT(nvarchar(4000), NEW.[Children1Price3], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1Price3] <>
					OLD.[Children1Price3]
				) Or
			
				(
					NEW.[Children1Price3] Is Null And
					OLD.[Children1Price3] Is Not Null
				) Or
				(
					NEW.[Children1Price3] Is Not Null And
					OLD.[Children1Price3] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1Price4])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1Price4',
			CONVERT(nvarchar(4000), OLD.[Children1Price4], 2),
			CONVERT(nvarchar(4000), NEW.[Children1Price4], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1Price4] <>
					OLD.[Children1Price4]
				) Or
			
				(
					NEW.[Children1Price4] Is Null And
					OLD.[Children1Price4] Is Not Null
				) Or
				(
					NEW.[Children1Price4] Is Not Null And
					OLD.[Children1Price4] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1Price5])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1Price5',
			CONVERT(nvarchar(4000), OLD.[Children1Price5], 2),
			CONVERT(nvarchar(4000), NEW.[Children1Price5], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1Price5] <>
					OLD.[Children1Price5]
				) Or
			
				(
					NEW.[Children1Price5] Is Null And
					OLD.[Children1Price5] Is Not Null
				) Or
				(
					NEW.[Children1Price5] Is Not Null And
					OLD.[Children1Price5] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1Price6])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1Price6',
			CONVERT(nvarchar(4000), OLD.[Children1Price6], 2),
			CONVERT(nvarchar(4000), NEW.[Children1Price6], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1Price6] <>
					OLD.[Children1Price6]
				) Or
			
				(
					NEW.[Children1Price6] Is Null And
					OLD.[Children1Price6] Is Not Null
				) Or
				(
					NEW.[Children1Price6] Is Not Null And
					OLD.[Children1Price6] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1Price7])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1Price7',
			CONVERT(nvarchar(4000), OLD.[Children1Price7], 2),
			CONVERT(nvarchar(4000), NEW.[Children1Price7], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1Price7] <>
					OLD.[Children1Price7]
				) Or
			
				(
					NEW.[Children1Price7] Is Null And
					OLD.[Children1Price7] Is Not Null
				) Or
				(
					NEW.[Children1Price7] Is Not Null And
					OLD.[Children1Price7] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1Price8])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1Price8',
			CONVERT(nvarchar(4000), OLD.[Children1Price8], 2),
			CONVERT(nvarchar(4000), NEW.[Children1Price8], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1Price8] <>
					OLD.[Children1Price8]
				) Or
			
				(
					NEW.[Children1Price8] Is Null And
					OLD.[Children1Price8] Is Not Null
				) Or
				(
					NEW.[Children1Price8] Is Not Null And
					OLD.[Children1Price8] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1Price9])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1Price9',
			CONVERT(nvarchar(4000), OLD.[Children1Price9], 2),
			CONVERT(nvarchar(4000), NEW.[Children1Price9], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1Price9] <>
					OLD.[Children1Price9]
				) Or
			
				(
					NEW.[Children1Price9] Is Null And
					OLD.[Children1Price9] Is Not Null
				) Or
				(
					NEW.[Children1Price9] Is Not Null And
					OLD.[Children1Price9] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2Price1])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2Price1',
			CONVERT(nvarchar(4000), OLD.[Children2Price1], 2),
			CONVERT(nvarchar(4000), NEW.[Children2Price1], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2Price1] <>
					OLD.[Children2Price1]
				) Or
			
				(
					NEW.[Children2Price1] Is Null And
					OLD.[Children2Price1] Is Not Null
				) Or
				(
					NEW.[Children2Price1] Is Not Null And
					OLD.[Children2Price1] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2Price2])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2Price2',
			CONVERT(nvarchar(4000), OLD.[Children2Price2], 2),
			CONVERT(nvarchar(4000), NEW.[Children2Price2], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2Price2] <>
					OLD.[Children2Price2]
				) Or
			
				(
					NEW.[Children2Price2] Is Null And
					OLD.[Children2Price2] Is Not Null
				) Or
				(
					NEW.[Children2Price2] Is Not Null And
					OLD.[Children2Price2] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2Price3])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2Price3',
			CONVERT(nvarchar(4000), OLD.[Children2Price3], 2),
			CONVERT(nvarchar(4000), NEW.[Children2Price3], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2Price3] <>
					OLD.[Children2Price3]
				) Or
			
				(
					NEW.[Children2Price3] Is Null And
					OLD.[Children2Price3] Is Not Null
				) Or
				(
					NEW.[Children2Price3] Is Not Null And
					OLD.[Children2Price3] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2Price4])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2Price4',
			CONVERT(nvarchar(4000), OLD.[Children2Price4], 2),
			CONVERT(nvarchar(4000), NEW.[Children2Price4], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2Price4] <>
					OLD.[Children2Price4]
				) Or
			
				(
					NEW.[Children2Price4] Is Null And
					OLD.[Children2Price4] Is Not Null
				) Or
				(
					NEW.[Children2Price4] Is Not Null And
					OLD.[Children2Price4] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2Price5])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2Price5',
			CONVERT(nvarchar(4000), OLD.[Children2Price5], 2),
			CONVERT(nvarchar(4000), NEW.[Children2Price5], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2Price5] <>
					OLD.[Children2Price5]
				) Or
			
				(
					NEW.[Children2Price5] Is Null And
					OLD.[Children2Price5] Is Not Null
				) Or
				(
					NEW.[Children2Price5] Is Not Null And
					OLD.[Children2Price5] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2Price6])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2Price6',
			CONVERT(nvarchar(4000), OLD.[Children2Price6], 2),
			CONVERT(nvarchar(4000), NEW.[Children2Price6], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2Price6] <>
					OLD.[Children2Price6]
				) Or
			
				(
					NEW.[Children2Price6] Is Null And
					OLD.[Children2Price6] Is Not Null
				) Or
				(
					NEW.[Children2Price6] Is Not Null And
					OLD.[Children2Price6] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2Price7])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2Price7',
			CONVERT(nvarchar(4000), OLD.[Children2Price7], 2),
			CONVERT(nvarchar(4000), NEW.[Children2Price7], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2Price7] <>
					OLD.[Children2Price7]
				) Or
			
				(
					NEW.[Children2Price7] Is Null And
					OLD.[Children2Price7] Is Not Null
				) Or
				(
					NEW.[Children2Price7] Is Not Null And
					OLD.[Children2Price7] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2Price8])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2Price8',
			CONVERT(nvarchar(4000), OLD.[Children2Price8], 2),
			CONVERT(nvarchar(4000), NEW.[Children2Price8], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2Price8] <>
					OLD.[Children2Price8]
				) Or
			
				(
					NEW.[Children2Price8] Is Null And
					OLD.[Children2Price8] Is Not Null
				) Or
				(
					NEW.[Children2Price8] Is Not Null And
					OLD.[Children2Price8] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2Price9])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2Price9',
			CONVERT(nvarchar(4000), OLD.[Children2Price9], 2),
			CONVERT(nvarchar(4000), NEW.[Children2Price9], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2Price9] <>
					OLD.[Children2Price9]
				) Or
			
				(
					NEW.[Children2Price9] Is Null And
					OLD.[Children2Price9] Is Not Null
				) Or
				(
					NEW.[Children2Price9] Is Not Null And
					OLD.[Children2Price9] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultArrivalAddon])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultArrivalAddon',
			CONVERT(nvarchar(4000), OLD.[AdultArrivalAddon], 2),
			CONVERT(nvarchar(4000), NEW.[AdultArrivalAddon], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultArrivalAddon] <>
					OLD.[AdultArrivalAddon]
				) Or
			
				(
					NEW.[AdultArrivalAddon] Is Null And
					OLD.[AdultArrivalAddon] Is Not Null
				) Or
				(
					NEW.[AdultArrivalAddon] Is Not Null And
					OLD.[AdultArrivalAddon] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultStayAddon])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultStayAddon',
			CONVERT(nvarchar(4000), OLD.[AdultStayAddon], 2),
			CONVERT(nvarchar(4000), NEW.[AdultStayAddon], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultStayAddon] <>
					OLD.[AdultStayAddon]
				) Or
			
				(
					NEW.[AdultStayAddon] Is Null And
					OLD.[AdultStayAddon] Is Not Null
				) Or
				(
					NEW.[AdultStayAddon] Is Not Null And
					OLD.[AdultStayAddon] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultDepartureAddon])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultDepartureAddon',
			CONVERT(nvarchar(4000), OLD.[AdultDepartureAddon], 2),
			CONVERT(nvarchar(4000), NEW.[AdultDepartureAddon], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultDepartureAddon] <>
					OLD.[AdultDepartureAddon]
				) Or
			
				(
					NEW.[AdultDepartureAddon] Is Null And
					OLD.[AdultDepartureAddon] Is Not Null
				) Or
				(
					NEW.[AdultDepartureAddon] Is Not Null And
					OLD.[AdultDepartureAddon] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1ArrivalAddon])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1ArrivalAddon',
			CONVERT(nvarchar(4000), OLD.[Children1ArrivalAddon], 2),
			CONVERT(nvarchar(4000), NEW.[Children1ArrivalAddon], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1ArrivalAddon] <>
					OLD.[Children1ArrivalAddon]
				) Or
			
				(
					NEW.[Children1ArrivalAddon] Is Null And
					OLD.[Children1ArrivalAddon] Is Not Null
				) Or
				(
					NEW.[Children1ArrivalAddon] Is Not Null And
					OLD.[Children1ArrivalAddon] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1StayAddon])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1StayAddon',
			CONVERT(nvarchar(4000), OLD.[Children1StayAddon], 2),
			CONVERT(nvarchar(4000), NEW.[Children1StayAddon], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1StayAddon] <>
					OLD.[Children1StayAddon]
				) Or
			
				(
					NEW.[Children1StayAddon] Is Null And
					OLD.[Children1StayAddon] Is Not Null
				) Or
				(
					NEW.[Children1StayAddon] Is Not Null And
					OLD.[Children1StayAddon] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1DepartureAddon])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1DepartureAddon',
			CONVERT(nvarchar(4000), OLD.[Children1DepartureAddon], 2),
			CONVERT(nvarchar(4000), NEW.[Children1DepartureAddon], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1DepartureAddon] <>
					OLD.[Children1DepartureAddon]
				) Or
			
				(
					NEW.[Children1DepartureAddon] Is Null And
					OLD.[Children1DepartureAddon] Is Not Null
				) Or
				(
					NEW.[Children1DepartureAddon] Is Not Null And
					OLD.[Children1DepartureAddon] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2ArrivalAddon])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2ArrivalAddon',
			CONVERT(nvarchar(4000), OLD.[Children2ArrivalAddon], 2),
			CONVERT(nvarchar(4000), NEW.[Children2ArrivalAddon], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2ArrivalAddon] <>
					OLD.[Children2ArrivalAddon]
				) Or
			
				(
					NEW.[Children2ArrivalAddon] Is Null And
					OLD.[Children2ArrivalAddon] Is Not Null
				) Or
				(
					NEW.[Children2ArrivalAddon] Is Not Null And
					OLD.[Children2ArrivalAddon] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2StayAddon])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2StayAddon',
			CONVERT(nvarchar(4000), OLD.[Children2StayAddon], 2),
			CONVERT(nvarchar(4000), NEW.[Children2StayAddon], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2StayAddon] <>
					OLD.[Children2StayAddon]
				) Or
			
				(
					NEW.[Children2StayAddon] Is Null And
					OLD.[Children2StayAddon] Is Not Null
				) Or
				(
					NEW.[Children2StayAddon] Is Not Null And
					OLD.[Children2StayAddon] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2DepartureAddon])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2DepartureAddon',
			CONVERT(nvarchar(4000), OLD.[Children2DepartureAddon], 2),
			CONVERT(nvarchar(4000), NEW.[Children2DepartureAddon], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2DepartureAddon] <>
					OLD.[Children2DepartureAddon]
				) Or
			
				(
					NEW.[Children2DepartureAddon] Is Null And
					OLD.[Children2DepartureAddon] Is Not Null
				) Or
				(
					NEW.[Children2DepartureAddon] Is Not Null And
					OLD.[Children2DepartureAddon] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([ArrivalPacketNumber])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'ArrivalPacketNumber',
			CONVERT(nvarchar(4000), OLD.[ArrivalPacketNumber], 0),
			CONVERT(nvarchar(4000), NEW.[ArrivalPacketNumber], 0),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[ArrivalPacketNumber] <>
					OLD.[ArrivalPacketNumber]
				) Or
			
				(
					NEW.[ArrivalPacketNumber] Is Null And
					OLD.[ArrivalPacketNumber] Is Not Null
				) Or
				(
					NEW.[ArrivalPacketNumber] Is Not Null And
					OLD.[ArrivalPacketNumber] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([StayPacketNumber])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'StayPacketNumber',
			CONVERT(nvarchar(4000), OLD.[StayPacketNumber], 0),
			CONVERT(nvarchar(4000), NEW.[StayPacketNumber], 0),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[StayPacketNumber] <>
					OLD.[StayPacketNumber]
				) Or
			
				(
					NEW.[StayPacketNumber] Is Null And
					OLD.[StayPacketNumber] Is Not Null
				) Or
				(
					NEW.[StayPacketNumber] Is Not Null And
					OLD.[StayPacketNumber] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([DeparturePacketNumber])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'DeparturePacketNumber',
			CONVERT(nvarchar(4000), OLD.[DeparturePacketNumber], 0),
			CONVERT(nvarchar(4000), NEW.[DeparturePacketNumber], 0),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[DeparturePacketNumber] <>
					OLD.[DeparturePacketNumber]
				) Or
			
				(
					NEW.[DeparturePacketNumber] Is Null And
					OLD.[DeparturePacketNumber] Is Not Null
				) Or
				(
					NEW.[DeparturePacketNumber] Is Not Null And
					OLD.[DeparturePacketNumber] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultArrivalAddon2])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultArrivalAddon2',
			CONVERT(nvarchar(4000), OLD.[AdultArrivalAddon2], 2),
			CONVERT(nvarchar(4000), NEW.[AdultArrivalAddon2], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultArrivalAddon2] <>
					OLD.[AdultArrivalAddon2]
				) Or
			
				(
					NEW.[AdultArrivalAddon2] Is Null And
					OLD.[AdultArrivalAddon2] Is Not Null
				) Or
				(
					NEW.[AdultArrivalAddon2] Is Not Null And
					OLD.[AdultArrivalAddon2] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultArrivalAddon3])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultArrivalAddon3',
			CONVERT(nvarchar(4000), OLD.[AdultArrivalAddon3], 2),
			CONVERT(nvarchar(4000), NEW.[AdultArrivalAddon3], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultArrivalAddon3] <>
					OLD.[AdultArrivalAddon3]
				) Or
			
				(
					NEW.[AdultArrivalAddon3] Is Null And
					OLD.[AdultArrivalAddon3] Is Not Null
				) Or
				(
					NEW.[AdultArrivalAddon3] Is Not Null And
					OLD.[AdultArrivalAddon3] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultArrivalAddon4])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultArrivalAddon4',
			CONVERT(nvarchar(4000), OLD.[AdultArrivalAddon4], 2),
			CONVERT(nvarchar(4000), NEW.[AdultArrivalAddon4], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultArrivalAddon4] <>
					OLD.[AdultArrivalAddon4]
				) Or
			
				(
					NEW.[AdultArrivalAddon4] Is Null And
					OLD.[AdultArrivalAddon4] Is Not Null
				) Or
				(
					NEW.[AdultArrivalAddon4] Is Not Null And
					OLD.[AdultArrivalAddon4] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultArrivalAddon5])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultArrivalAddon5',
			CONVERT(nvarchar(4000), OLD.[AdultArrivalAddon5], 2),
			CONVERT(nvarchar(4000), NEW.[AdultArrivalAddon5], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultArrivalAddon5] <>
					OLD.[AdultArrivalAddon5]
				) Or
			
				(
					NEW.[AdultArrivalAddon5] Is Null And
					OLD.[AdultArrivalAddon5] Is Not Null
				) Or
				(
					NEW.[AdultArrivalAddon5] Is Not Null And
					OLD.[AdultArrivalAddon5] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultArrivalAddon6])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultArrivalAddon6',
			CONVERT(nvarchar(4000), OLD.[AdultArrivalAddon6], 2),
			CONVERT(nvarchar(4000), NEW.[AdultArrivalAddon6], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultArrivalAddon6] <>
					OLD.[AdultArrivalAddon6]
				) Or
			
				(
					NEW.[AdultArrivalAddon6] Is Null And
					OLD.[AdultArrivalAddon6] Is Not Null
				) Or
				(
					NEW.[AdultArrivalAddon6] Is Not Null And
					OLD.[AdultArrivalAddon6] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultArrivalAddon7])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultArrivalAddon7',
			CONVERT(nvarchar(4000), OLD.[AdultArrivalAddon7], 2),
			CONVERT(nvarchar(4000), NEW.[AdultArrivalAddon7], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultArrivalAddon7] <>
					OLD.[AdultArrivalAddon7]
				) Or
			
				(
					NEW.[AdultArrivalAddon7] Is Null And
					OLD.[AdultArrivalAddon7] Is Not Null
				) Or
				(
					NEW.[AdultArrivalAddon7] Is Not Null And
					OLD.[AdultArrivalAddon7] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultArrivalAddon8])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultArrivalAddon8',
			CONVERT(nvarchar(4000), OLD.[AdultArrivalAddon8], 2),
			CONVERT(nvarchar(4000), NEW.[AdultArrivalAddon8], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultArrivalAddon8] <>
					OLD.[AdultArrivalAddon8]
				) Or
			
				(
					NEW.[AdultArrivalAddon8] Is Null And
					OLD.[AdultArrivalAddon8] Is Not Null
				) Or
				(
					NEW.[AdultArrivalAddon8] Is Not Null And
					OLD.[AdultArrivalAddon8] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultArrivalAddon9])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultArrivalAddon9',
			CONVERT(nvarchar(4000), OLD.[AdultArrivalAddon9], 2),
			CONVERT(nvarchar(4000), NEW.[AdultArrivalAddon9], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultArrivalAddon9] <>
					OLD.[AdultArrivalAddon9]
				) Or
			
				(
					NEW.[AdultArrivalAddon9] Is Null And
					OLD.[AdultArrivalAddon9] Is Not Null
				) Or
				(
					NEW.[AdultArrivalAddon9] Is Not Null And
					OLD.[AdultArrivalAddon9] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultStayAddon2])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultStayAddon2',
			CONVERT(nvarchar(4000), OLD.[AdultStayAddon2], 2),
			CONVERT(nvarchar(4000), NEW.[AdultStayAddon2], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultStayAddon2] <>
					OLD.[AdultStayAddon2]
				) Or
			
				(
					NEW.[AdultStayAddon2] Is Null And
					OLD.[AdultStayAddon2] Is Not Null
				) Or
				(
					NEW.[AdultStayAddon2] Is Not Null And
					OLD.[AdultStayAddon2] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultStayAddon3])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultStayAddon3',
			CONVERT(nvarchar(4000), OLD.[AdultStayAddon3], 2),
			CONVERT(nvarchar(4000), NEW.[AdultStayAddon3], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultStayAddon3] <>
					OLD.[AdultStayAddon3]
				) Or
			
				(
					NEW.[AdultStayAddon3] Is Null And
					OLD.[AdultStayAddon3] Is Not Null
				) Or
				(
					NEW.[AdultStayAddon3] Is Not Null And
					OLD.[AdultStayAddon3] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultStayAddon4])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultStayAddon4',
			CONVERT(nvarchar(4000), OLD.[AdultStayAddon4], 2),
			CONVERT(nvarchar(4000), NEW.[AdultStayAddon4], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultStayAddon4] <>
					OLD.[AdultStayAddon4]
				) Or
			
				(
					NEW.[AdultStayAddon4] Is Null And
					OLD.[AdultStayAddon4] Is Not Null
				) Or
				(
					NEW.[AdultStayAddon4] Is Not Null And
					OLD.[AdultStayAddon4] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultStayAddon5])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultStayAddon5',
			CONVERT(nvarchar(4000), OLD.[AdultStayAddon5], 2),
			CONVERT(nvarchar(4000), NEW.[AdultStayAddon5], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultStayAddon5] <>
					OLD.[AdultStayAddon5]
				) Or
			
				(
					NEW.[AdultStayAddon5] Is Null And
					OLD.[AdultStayAddon5] Is Not Null
				) Or
				(
					NEW.[AdultStayAddon5] Is Not Null And
					OLD.[AdultStayAddon5] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultStayAddon6])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultStayAddon6',
			CONVERT(nvarchar(4000), OLD.[AdultStayAddon6], 2),
			CONVERT(nvarchar(4000), NEW.[AdultStayAddon6], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultStayAddon6] <>
					OLD.[AdultStayAddon6]
				) Or
			
				(
					NEW.[AdultStayAddon6] Is Null And
					OLD.[AdultStayAddon6] Is Not Null
				) Or
				(
					NEW.[AdultStayAddon6] Is Not Null And
					OLD.[AdultStayAddon6] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultStayAddon7])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultStayAddon7',
			CONVERT(nvarchar(4000), OLD.[AdultStayAddon7], 2),
			CONVERT(nvarchar(4000), NEW.[AdultStayAddon7], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultStayAddon7] <>
					OLD.[AdultStayAddon7]
				) Or
			
				(
					NEW.[AdultStayAddon7] Is Null And
					OLD.[AdultStayAddon7] Is Not Null
				) Or
				(
					NEW.[AdultStayAddon7] Is Not Null And
					OLD.[AdultStayAddon7] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultStayAddon8])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultStayAddon8',
			CONVERT(nvarchar(4000), OLD.[AdultStayAddon8], 2),
			CONVERT(nvarchar(4000), NEW.[AdultStayAddon8], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultStayAddon8] <>
					OLD.[AdultStayAddon8]
				) Or
			
				(
					NEW.[AdultStayAddon8] Is Null And
					OLD.[AdultStayAddon8] Is Not Null
				) Or
				(
					NEW.[AdultStayAddon8] Is Not Null And
					OLD.[AdultStayAddon8] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultStayAddon9])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultStayAddon9',
			CONVERT(nvarchar(4000), OLD.[AdultStayAddon9], 2),
			CONVERT(nvarchar(4000), NEW.[AdultStayAddon9], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultStayAddon9] <>
					OLD.[AdultStayAddon9]
				) Or
			
				(
					NEW.[AdultStayAddon9] Is Null And
					OLD.[AdultStayAddon9] Is Not Null
				) Or
				(
					NEW.[AdultStayAddon9] Is Not Null And
					OLD.[AdultStayAddon9] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultDepartureAddon2])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultDepartureAddon2',
			CONVERT(nvarchar(4000), OLD.[AdultDepartureAddon2], 2),
			CONVERT(nvarchar(4000), NEW.[AdultDepartureAddon2], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultDepartureAddon2] <>
					OLD.[AdultDepartureAddon2]
				) Or
			
				(
					NEW.[AdultDepartureAddon2] Is Null And
					OLD.[AdultDepartureAddon2] Is Not Null
				) Or
				(
					NEW.[AdultDepartureAddon2] Is Not Null And
					OLD.[AdultDepartureAddon2] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultDepartureAddon3])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultDepartureAddon3',
			CONVERT(nvarchar(4000), OLD.[AdultDepartureAddon3], 2),
			CONVERT(nvarchar(4000), NEW.[AdultDepartureAddon3], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultDepartureAddon3] <>
					OLD.[AdultDepartureAddon3]
				) Or
			
				(
					NEW.[AdultDepartureAddon3] Is Null And
					OLD.[AdultDepartureAddon3] Is Not Null
				) Or
				(
					NEW.[AdultDepartureAddon3] Is Not Null And
					OLD.[AdultDepartureAddon3] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultDepartureAddon4])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultDepartureAddon4',
			CONVERT(nvarchar(4000), OLD.[AdultDepartureAddon4], 2),
			CONVERT(nvarchar(4000), NEW.[AdultDepartureAddon4], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultDepartureAddon4] <>
					OLD.[AdultDepartureAddon4]
				) Or
			
				(
					NEW.[AdultDepartureAddon4] Is Null And
					OLD.[AdultDepartureAddon4] Is Not Null
				) Or
				(
					NEW.[AdultDepartureAddon4] Is Not Null And
					OLD.[AdultDepartureAddon4] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultDepartureAddon5])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultDepartureAddon5',
			CONVERT(nvarchar(4000), OLD.[AdultDepartureAddon5], 2),
			CONVERT(nvarchar(4000), NEW.[AdultDepartureAddon5], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultDepartureAddon5] <>
					OLD.[AdultDepartureAddon5]
				) Or
			
				(
					NEW.[AdultDepartureAddon5] Is Null And
					OLD.[AdultDepartureAddon5] Is Not Null
				) Or
				(
					NEW.[AdultDepartureAddon5] Is Not Null And
					OLD.[AdultDepartureAddon5] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultDepartureAddon6])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultDepartureAddon6',
			CONVERT(nvarchar(4000), OLD.[AdultDepartureAddon6], 2),
			CONVERT(nvarchar(4000), NEW.[AdultDepartureAddon6], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultDepartureAddon6] <>
					OLD.[AdultDepartureAddon6]
				) Or
			
				(
					NEW.[AdultDepartureAddon6] Is Null And
					OLD.[AdultDepartureAddon6] Is Not Null
				) Or
				(
					NEW.[AdultDepartureAddon6] Is Not Null And
					OLD.[AdultDepartureAddon6] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultDepartureAddon7])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultDepartureAddon7',
			CONVERT(nvarchar(4000), OLD.[AdultDepartureAddon7], 2),
			CONVERT(nvarchar(4000), NEW.[AdultDepartureAddon7], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultDepartureAddon7] <>
					OLD.[AdultDepartureAddon7]
				) Or
			
				(
					NEW.[AdultDepartureAddon7] Is Null And
					OLD.[AdultDepartureAddon7] Is Not Null
				) Or
				(
					NEW.[AdultDepartureAddon7] Is Not Null And
					OLD.[AdultDepartureAddon7] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultDepartureAddon8])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultDepartureAddon8',
			CONVERT(nvarchar(4000), OLD.[AdultDepartureAddon8], 2),
			CONVERT(nvarchar(4000), NEW.[AdultDepartureAddon8], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultDepartureAddon8] <>
					OLD.[AdultDepartureAddon8]
				) Or
			
				(
					NEW.[AdultDepartureAddon8] Is Null And
					OLD.[AdultDepartureAddon8] Is Not Null
				) Or
				(
					NEW.[AdultDepartureAddon8] Is Not Null And
					OLD.[AdultDepartureAddon8] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([AdultDepartureAddon9])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'AdultDepartureAddon9',
			CONVERT(nvarchar(4000), OLD.[AdultDepartureAddon9], 2),
			CONVERT(nvarchar(4000), NEW.[AdultDepartureAddon9], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[AdultDepartureAddon9] <>
					OLD.[AdultDepartureAddon9]
				) Or
			
				(
					NEW.[AdultDepartureAddon9] Is Null And
					OLD.[AdultDepartureAddon9] Is Not Null
				) Or
				(
					NEW.[AdultDepartureAddon9] Is Not Null And
					OLD.[AdultDepartureAddon9] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1ArrivalAddon2])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1ArrivalAddon2',
			CONVERT(nvarchar(4000), OLD.[Children1ArrivalAddon2], 2),
			CONVERT(nvarchar(4000), NEW.[Children1ArrivalAddon2], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1ArrivalAddon2] <>
					OLD.[Children1ArrivalAddon2]
				) Or
			
				(
					NEW.[Children1ArrivalAddon2] Is Null And
					OLD.[Children1ArrivalAddon2] Is Not Null
				) Or
				(
					NEW.[Children1ArrivalAddon2] Is Not Null And
					OLD.[Children1ArrivalAddon2] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1ArrivalAddon3])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1ArrivalAddon3',
			CONVERT(nvarchar(4000), OLD.[Children1ArrivalAddon3], 2),
			CONVERT(nvarchar(4000), NEW.[Children1ArrivalAddon3], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1ArrivalAddon3] <>
					OLD.[Children1ArrivalAddon3]
				) Or
			
				(
					NEW.[Children1ArrivalAddon3] Is Null And
					OLD.[Children1ArrivalAddon3] Is Not Null
				) Or
				(
					NEW.[Children1ArrivalAddon3] Is Not Null And
					OLD.[Children1ArrivalAddon3] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1ArrivalAddon4])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1ArrivalAddon4',
			CONVERT(nvarchar(4000), OLD.[Children1ArrivalAddon4], 2),
			CONVERT(nvarchar(4000), NEW.[Children1ArrivalAddon4], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1ArrivalAddon4] <>
					OLD.[Children1ArrivalAddon4]
				) Or
			
				(
					NEW.[Children1ArrivalAddon4] Is Null And
					OLD.[Children1ArrivalAddon4] Is Not Null
				) Or
				(
					NEW.[Children1ArrivalAddon4] Is Not Null And
					OLD.[Children1ArrivalAddon4] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1ArrivalAddon5])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1ArrivalAddon5',
			CONVERT(nvarchar(4000), OLD.[Children1ArrivalAddon5], 2),
			CONVERT(nvarchar(4000), NEW.[Children1ArrivalAddon5], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1ArrivalAddon5] <>
					OLD.[Children1ArrivalAddon5]
				) Or
			
				(
					NEW.[Children1ArrivalAddon5] Is Null And
					OLD.[Children1ArrivalAddon5] Is Not Null
				) Or
				(
					NEW.[Children1ArrivalAddon5] Is Not Null And
					OLD.[Children1ArrivalAddon5] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1ArrivalAddon6])
	BEGIN
  
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1ArrivalAddon6',
			CONVERT(nvarchar(4000), OLD.[Children1ArrivalAddon6], 2),
			CONVERT(nvarchar(4000), NEW.[Children1ArrivalAddon6], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1ArrivalAddon6] <>
					OLD.[Children1ArrivalAddon6]
				) Or
			
				(
					NEW.[Children1ArrivalAddon6] Is Null And
					OLD.[Children1ArrivalAddon6] Is Not Null
				) Or
				(
					NEW.[Children1ArrivalAddon6] Is Not Null And
					OLD.[Children1ArrivalAddon6] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1ArrivalAddon7])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1ArrivalAddon7',
			CONVERT(nvarchar(4000), OLD.[Children1ArrivalAddon7], 2),
			CONVERT(nvarchar(4000), NEW.[Children1ArrivalAddon7], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1ArrivalAddon7] <>
					OLD.[Children1ArrivalAddon7]
				) Or
			
				(
					NEW.[Children1ArrivalAddon7] Is Null And
					OLD.[Children1ArrivalAddon7] Is Not Null
				) Or
				(
					NEW.[Children1ArrivalAddon7] Is Not Null And
					OLD.[Children1ArrivalAddon7] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1ArrivalAddon8])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1ArrivalAddon8',
			CONVERT(nvarchar(4000), OLD.[Children1ArrivalAddon8], 2),
			CONVERT(nvarchar(4000), NEW.[Children1ArrivalAddon8], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1ArrivalAddon8] <>
					OLD.[Children1ArrivalAddon8]
				) Or
			
				(
					NEW.[Children1ArrivalAddon8] Is Null And
					OLD.[Children1ArrivalAddon8] Is Not Null
				) Or
				(
					NEW.[Children1ArrivalAddon8] Is Not Null And
					OLD.[Children1ArrivalAddon8] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1ArrivalAddon9])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1ArrivalAddon9',
			CONVERT(nvarchar(4000), OLD.[Children1ArrivalAddon9], 2),
			CONVERT(nvarchar(4000), NEW.[Children1ArrivalAddon9], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1ArrivalAddon9] <>
					OLD.[Children1ArrivalAddon9]
				) Or
			
				(
					NEW.[Children1ArrivalAddon9] Is Null And
					OLD.[Children1ArrivalAddon9] Is Not Null
				) Or
				(
					NEW.[Children1ArrivalAddon9] Is Not Null And
					OLD.[Children1ArrivalAddon9] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1StayAddon2])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1StayAddon2',
			CONVERT(nvarchar(4000), OLD.[Children1StayAddon2], 2),
			CONVERT(nvarchar(4000), NEW.[Children1StayAddon2], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1StayAddon2] <>
					OLD.[Children1StayAddon2]
				) Or
			
				(
					NEW.[Children1StayAddon2] Is Null And
					OLD.[Children1StayAddon2] Is Not Null
				) Or
				(
					NEW.[Children1StayAddon2] Is Not Null And
					OLD.[Children1StayAddon2] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1StayAddon3])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1StayAddon3',
			CONVERT(nvarchar(4000), OLD.[Children1StayAddon3], 2),
			CONVERT(nvarchar(4000), NEW.[Children1StayAddon3], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1StayAddon3] <>
					OLD.[Children1StayAddon3]
				) Or
			
				(
					NEW.[Children1StayAddon3] Is Null And
					OLD.[Children1StayAddon3] Is Not Null
				) Or
				(
					NEW.[Children1StayAddon3] Is Not Null And
					OLD.[Children1StayAddon3] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1StayAddon4])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1StayAddon4',
			CONVERT(nvarchar(4000), OLD.[Children1StayAddon4], 2),
			CONVERT(nvarchar(4000), NEW.[Children1StayAddon4], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1StayAddon4] <>
					OLD.[Children1StayAddon4]
				) Or
			
				(
					NEW.[Children1StayAddon4] Is Null And
					OLD.[Children1StayAddon4] Is Not Null
				) Or
				(
					NEW.[Children1StayAddon4] Is Not Null And
					OLD.[Children1StayAddon4] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1StayAddon5])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1StayAddon5',
			CONVERT(nvarchar(4000), OLD.[Children1StayAddon5], 2),
			CONVERT(nvarchar(4000), NEW.[Children1StayAddon5], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1StayAddon5] <>
					OLD.[Children1StayAddon5]
				) Or
			
				(
					NEW.[Children1StayAddon5] Is Null And
					OLD.[Children1StayAddon5] Is Not Null
				) Or
				(
					NEW.[Children1StayAddon5] Is Not Null And
					OLD.[Children1StayAddon5] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1StayAddon6])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1StayAddon6',
			CONVERT(nvarchar(4000), OLD.[Children1StayAddon6], 2),
			CONVERT(nvarchar(4000), NEW.[Children1StayAddon6], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1StayAddon6] <>
					OLD.[Children1StayAddon6]
				) Or
			
				(
					NEW.[Children1StayAddon6] Is Null And
					OLD.[Children1StayAddon6] Is Not Null
				) Or
				(
					NEW.[Children1StayAddon6] Is Not Null And
					OLD.[Children1StayAddon6] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1StayAddon7])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1StayAddon7',
			CONVERT(nvarchar(4000), OLD.[Children1StayAddon7], 2),
			CONVERT(nvarchar(4000), NEW.[Children1StayAddon7], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1StayAddon7] <>
					OLD.[Children1StayAddon7]
				) Or
			
				(
					NEW.[Children1StayAddon7] Is Null And
					OLD.[Children1StayAddon7] Is Not Null
				) Or
				(
					NEW.[Children1StayAddon7] Is Not Null And
					OLD.[Children1StayAddon7] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1StayAddon8])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1StayAddon8',
			CONVERT(nvarchar(4000), OLD.[Children1StayAddon8], 2),
			CONVERT(nvarchar(4000), NEW.[Children1StayAddon8], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1StayAddon8] <>
					OLD.[Children1StayAddon8]
				) Or
			
				(
					NEW.[Children1StayAddon8] Is Null And
					OLD.[Children1StayAddon8] Is Not Null
				) Or
				(
					NEW.[Children1StayAddon8] Is Not Null And
					OLD.[Children1StayAddon8] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1StayAddon9])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1StayAddon9',
			CONVERT(nvarchar(4000), OLD.[Children1StayAddon9], 2),
			CONVERT(nvarchar(4000), NEW.[Children1StayAddon9], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1StayAddon9] <>
					OLD.[Children1StayAddon9]
				) Or
			
				(
					NEW.[Children1StayAddon9] Is Null And
					OLD.[Children1StayAddon9] Is Not Null
				) Or
				(
					NEW.[Children1StayAddon9] Is Not Null And
					OLD.[Children1StayAddon9] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1DepartureAddon2])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1DepartureAddon2',
			CONVERT(nvarchar(4000), OLD.[Children1DepartureAddon2], 2),
			CONVERT(nvarchar(4000), NEW.[Children1DepartureAddon2], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1DepartureAddon2] <>
					OLD.[Children1DepartureAddon2]
				) Or
			
				(
					NEW.[Children1DepartureAddon2] Is Null And
					OLD.[Children1DepartureAddon2] Is Not Null
				) Or
				(
					NEW.[Children1DepartureAddon2] Is Not Null And
					OLD.[Children1DepartureAddon2] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1DepartureAddon3])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1DepartureAddon3',
			CONVERT(nvarchar(4000), OLD.[Children1DepartureAddon3], 2),
			CONVERT(nvarchar(4000), NEW.[Children1DepartureAddon3], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1DepartureAddon3] <>
					OLD.[Children1DepartureAddon3]
				) Or
			
				(
					NEW.[Children1DepartureAddon3] Is Null And
					OLD.[Children1DepartureAddon3] Is Not Null
				) Or
				(
					NEW.[Children1DepartureAddon3] Is Not Null And
					OLD.[Children1DepartureAddon3] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1DepartureAddon4])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1DepartureAddon4',
			CONVERT(nvarchar(4000), OLD.[Children1DepartureAddon4], 2),
			CONVERT(nvarchar(4000), NEW.[Children1DepartureAddon4], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1DepartureAddon4] <>
					OLD.[Children1DepartureAddon4]
				) Or
			
				(
					NEW.[Children1DepartureAddon4] Is Null And
					OLD.[Children1DepartureAddon4] Is Not Null
				) Or
				(
					NEW.[Children1DepartureAddon4] Is Not Null And
					OLD.[Children1DepartureAddon4] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1DepartureAddon5])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1DepartureAddon5',
			CONVERT(nvarchar(4000), OLD.[Children1DepartureAddon5], 2),
			CONVERT(nvarchar(4000), NEW.[Children1DepartureAddon5], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1DepartureAddon5] <>
					OLD.[Children1DepartureAddon5]
				) Or
			
				(
					NEW.[Children1DepartureAddon5] Is Null And
					OLD.[Children1DepartureAddon5] Is Not Null
				) Or
				(
					NEW.[Children1DepartureAddon5] Is Not Null And
					OLD.[Children1DepartureAddon5] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1DepartureAddon6])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1DepartureAddon6',
			CONVERT(nvarchar(4000), OLD.[Children1DepartureAddon6], 2),
			CONVERT(nvarchar(4000), NEW.[Children1DepartureAddon6], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1DepartureAddon6] <>
					OLD.[Children1DepartureAddon6]
				) Or
			
				(
					NEW.[Children1DepartureAddon6] Is Null And
					OLD.[Children1DepartureAddon6] Is Not Null
				) Or
				(
					NEW.[Children1DepartureAddon6] Is Not Null And
					OLD.[Children1DepartureAddon6] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1DepartureAddon7])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1DepartureAddon7',
			CONVERT(nvarchar(4000), OLD.[Children1DepartureAddon7], 2),
			CONVERT(nvarchar(4000), NEW.[Children1DepartureAddon7], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1DepartureAddon7] <>
					OLD.[Children1DepartureAddon7]
				) Or
			
				(
					NEW.[Children1DepartureAddon7] Is Null And
					OLD.[Children1DepartureAddon7] Is Not Null
				) Or
				(
					NEW.[Children1DepartureAddon7] Is Not Null And
					OLD.[Children1DepartureAddon7] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1DepartureAddon8])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1DepartureAddon8',
			CONVERT(nvarchar(4000), OLD.[Children1DepartureAddon8], 2),
			CONVERT(nvarchar(4000), NEW.[Children1DepartureAddon8], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1DepartureAddon8] <>
					OLD.[Children1DepartureAddon8]
				) Or
			
				(
					NEW.[Children1DepartureAddon8] Is Null And
					OLD.[Children1DepartureAddon8] Is Not Null
				) Or
				(
					NEW.[Children1DepartureAddon8] Is Not Null And
					OLD.[Children1DepartureAddon8] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children1DepartureAddon9])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children1DepartureAddon9',
			CONVERT(nvarchar(4000), OLD.[Children1DepartureAddon9], 2),
			CONVERT(nvarchar(4000), NEW.[Children1DepartureAddon9], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children1DepartureAddon9] <>
					OLD.[Children1DepartureAddon9]
				) Or
			
				(
					NEW.[Children1DepartureAddon9] Is Null And
					OLD.[Children1DepartureAddon9] Is Not Null
				) Or
				(
					NEW.[Children1DepartureAddon9] Is Not Null And
					OLD.[Children1DepartureAddon9] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2ArrivalAddon2])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2ArrivalAddon2',
			CONVERT(nvarchar(4000), OLD.[Children2ArrivalAddon2], 2),
			CONVERT(nvarchar(4000), NEW.[Children2ArrivalAddon2], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2ArrivalAddon2] <>
					OLD.[Children2ArrivalAddon2]
				) Or
			
				(
					NEW.[Children2ArrivalAddon2] Is Null And
					OLD.[Children2ArrivalAddon2] Is Not Null
				) Or
				(
					NEW.[Children2ArrivalAddon2] Is Not Null And
					OLD.[Children2ArrivalAddon2] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2ArrivalAddon3])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2ArrivalAddon3',
			CONVERT(nvarchar(4000), OLD.[Children2ArrivalAddon3], 2),
			CONVERT(nvarchar(4000), NEW.[Children2ArrivalAddon3], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2ArrivalAddon3] <>
					OLD.[Children2ArrivalAddon3]
				) Or
			
				(
					NEW.[Children2ArrivalAddon3] Is Null And
					OLD.[Children2ArrivalAddon3] Is Not Null
				) Or
				(
					NEW.[Children2ArrivalAddon3] Is Not Null And
					OLD.[Children2ArrivalAddon3] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2ArrivalAddon4])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2ArrivalAddon4',
			CONVERT(nvarchar(4000), OLD.[Children2ArrivalAddon4], 2),
			CONVERT(nvarchar(4000), NEW.[Children2ArrivalAddon4], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2ArrivalAddon4] <>
					OLD.[Children2ArrivalAddon4]
				) Or
			
				(
					NEW.[Children2ArrivalAddon4] Is Null And
					OLD.[Children2ArrivalAddon4] Is Not Null
				) Or
				(
					NEW.[Children2ArrivalAddon4] Is Not Null And
					OLD.[Children2ArrivalAddon4] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2ArrivalAddon5])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2ArrivalAddon5',
			CONVERT(nvarchar(4000), OLD.[Children2ArrivalAddon5], 2),
			CONVERT(nvarchar(4000), NEW.[Children2ArrivalAddon5], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2ArrivalAddon5] <>
					OLD.[Children2ArrivalAddon5]
				) Or
			
				(
					NEW.[Children2ArrivalAddon5] Is Null And
					OLD.[Children2ArrivalAddon5] Is Not Null
				) Or
				(
					NEW.[Children2ArrivalAddon5] Is Not Null And
					OLD.[Children2ArrivalAddon5] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2ArrivalAddon6])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2ArrivalAddon6',
			CONVERT(nvarchar(4000), OLD.[Children2ArrivalAddon6], 2),
			CONVERT(nvarchar(4000), NEW.[Children2ArrivalAddon6], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2ArrivalAddon6] <>
					OLD.[Children2ArrivalAddon6]
				) Or
			
				(
					NEW.[Children2ArrivalAddon6] Is Null And
					OLD.[Children2ArrivalAddon6] Is Not Null
				) Or
				(
					NEW.[Children2ArrivalAddon6] Is Not Null And
					OLD.[Children2ArrivalAddon6] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2ArrivalAddon7])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2ArrivalAddon7',
			CONVERT(nvarchar(4000), OLD.[Children2ArrivalAddon7], 2),
			CONVERT(nvarchar(4000), NEW.[Children2ArrivalAddon7], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2ArrivalAddon7] <>
					OLD.[Children2ArrivalAddon7]
				) Or
			
				(
					NEW.[Children2ArrivalAddon7] Is Null And
					OLD.[Children2ArrivalAddon7] Is Not Null
				) Or
				(
					NEW.[Children2ArrivalAddon7] Is Not Null And
					OLD.[Children2ArrivalAddon7] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2ArrivalAddon8])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2ArrivalAddon8',
			CONVERT(nvarchar(4000), OLD.[Children2ArrivalAddon8], 2),
			CONVERT(nvarchar(4000), NEW.[Children2ArrivalAddon8], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2ArrivalAddon8] <>
					OLD.[Children2ArrivalAddon8]
				) Or
			
				(
					NEW.[Children2ArrivalAddon8] Is Null And
					OLD.[Children2ArrivalAddon8] Is Not Null
				) Or
				(
					NEW.[Children2ArrivalAddon8] Is Not Null And
					OLD.[Children2ArrivalAddon8] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2ArrivalAddon9])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2ArrivalAddon9',
			CONVERT(nvarchar(4000), OLD.[Children2ArrivalAddon9], 2),
			CONVERT(nvarchar(4000), NEW.[Children2ArrivalAddon9], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2ArrivalAddon9] <>
					OLD.[Children2ArrivalAddon9]
				) Or
			
				(
					NEW.[Children2ArrivalAddon9] Is Null And
					OLD.[Children2ArrivalAddon9] Is Not Null
				) Or
				(
					NEW.[Children2ArrivalAddon9] Is Not Null And
					OLD.[Children2ArrivalAddon9] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2StayAddon2])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2StayAddon2',
			CONVERT(nvarchar(4000), OLD.[Children2StayAddon2], 2),
			CONVERT(nvarchar(4000), NEW.[Children2StayAddon2], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2StayAddon2] <>
					OLD.[Children2StayAddon2]
				) Or
			
				(
					NEW.[Children2StayAddon2] Is Null And
					OLD.[Children2StayAddon2] Is Not Null
				) Or
				(
					NEW.[Children2StayAddon2] Is Not Null And
					OLD.[Children2StayAddon2] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2StayAddon3])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2StayAddon3',
			CONVERT(nvarchar(4000), OLD.[Children2StayAddon3], 2),
			CONVERT(nvarchar(4000), NEW.[Children2StayAddon3], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2StayAddon3] <>
					OLD.[Children2StayAddon3]
				) Or
			
				(
					NEW.[Children2StayAddon3] Is Null And
					OLD.[Children2StayAddon3] Is Not Null
				) Or
				(
					NEW.[Children2StayAddon3] Is Not Null And
					OLD.[Children2StayAddon3] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2StayAddon4])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2StayAddon4',
			CONVERT(nvarchar(4000), OLD.[Children2StayAddon4], 2),
			CONVERT(nvarchar(4000), NEW.[Children2StayAddon4], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2StayAddon4] <>
					OLD.[Children2StayAddon4]
				) Or
			
				(
					NEW.[Children2StayAddon4] Is Null And
					OLD.[Children2StayAddon4] Is Not Null
				) Or
				(
					NEW.[Children2StayAddon4] Is Not Null And
					OLD.[Children2StayAddon4] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2StayAddon5])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2StayAddon5',
			CONVERT(nvarchar(4000), OLD.[Children2StayAddon5], 2),
			CONVERT(nvarchar(4000), NEW.[Children2StayAddon5], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2StayAddon5] <>
					OLD.[Children2StayAddon5]
				) Or
			
				(
					NEW.[Children2StayAddon5] Is Null And
					OLD.[Children2StayAddon5] Is Not Null
				) Or
				(
					NEW.[Children2StayAddon5] Is Not Null And
					OLD.[Children2StayAddon5] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2StayAddon6])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2StayAddon6',
			CONVERT(nvarchar(4000), OLD.[Children2StayAddon6], 2),
			CONVERT(nvarchar(4000), NEW.[Children2StayAddon6], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2StayAddon6] <>
					OLD.[Children2StayAddon6]
				) Or
			
				(
					NEW.[Children2StayAddon6] Is Null And
					OLD.[Children2StayAddon6] Is Not Null
				) Or
				(
					NEW.[Children2StayAddon6] Is Not Null And
					OLD.[Children2StayAddon6] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2StayAddon7])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2StayAddon7',
			CONVERT(nvarchar(4000), OLD.[Children2StayAddon7], 2),
			CONVERT(nvarchar(4000), NEW.[Children2StayAddon7], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2StayAddon7] <>
					OLD.[Children2StayAddon7]
				) Or
			
				(
					NEW.[Children2StayAddon7] Is Null And
					OLD.[Children2StayAddon7] Is Not Null
				) Or
				(
					NEW.[Children2StayAddon7] Is Not Null And
					OLD.[Children2StayAddon7] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2StayAddon8])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2StayAddon8',
			CONVERT(nvarchar(4000), OLD.[Children2StayAddon8], 2),
			CONVERT(nvarchar(4000), NEW.[Children2StayAddon8], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2StayAddon8] <>
					OLD.[Children2StayAddon8]
				) Or
			
				(
					NEW.[Children2StayAddon8] Is Null And
					OLD.[Children2StayAddon8] Is Not Null
				) Or
				(
					NEW.[Children2StayAddon8] Is Not Null And
					OLD.[Children2StayAddon8] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2StayAddon9])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2StayAddon9',
			CONVERT(nvarchar(4000), OLD.[Children2StayAddon9], 2),
			CONVERT(nvarchar(4000), NEW.[Children2StayAddon9], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2StayAddon9] <>
					OLD.[Children2StayAddon9]
				) Or
			
				(
					NEW.[Children2StayAddon9] Is Null And
					OLD.[Children2StayAddon9] Is Not Null
				) Or
				(
					NEW.[Children2StayAddon9] Is Not Null And
					OLD.[Children2StayAddon9] Is Null
				)
				)
       
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2DepartureAddon2])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2DepartureAddon2',
			CONVERT(nvarchar(4000), OLD.[Children2DepartureAddon2], 2),
			CONVERT(nvarchar(4000), NEW.[Children2DepartureAddon2], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2DepartureAddon2] <>
					OLD.[Children2DepartureAddon2]
				) Or
			
				(
					NEW.[Children2DepartureAddon2] Is Null And
					OLD.[Children2DepartureAddon2] Is Not Null
				) Or
				(
					NEW.[Children2DepartureAddon2] Is Not Null And
					OLD.[Children2DepartureAddon2] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2DepartureAddon3])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2DepartureAddon3',
			CONVERT(nvarchar(4000), OLD.[Children2DepartureAddon3], 2),
			CONVERT(nvarchar(4000), NEW.[Children2DepartureAddon3], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2DepartureAddon3] <>
					OLD.[Children2DepartureAddon3]
				) Or
			
				(
					NEW.[Children2DepartureAddon3] Is Null And
					OLD.[Children2DepartureAddon3] Is Not Null
				) Or
				(
					NEW.[Children2DepartureAddon3] Is Not Null And
					OLD.[Children2DepartureAddon3] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2DepartureAddon4])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2DepartureAddon4',
			CONVERT(nvarchar(4000), OLD.[Children2DepartureAddon4], 2),
			CONVERT(nvarchar(4000), NEW.[Children2DepartureAddon4], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2DepartureAddon4] <>
					OLD.[Children2DepartureAddon4]
				) Or
			
				(
					NEW.[Children2DepartureAddon4] Is Null And
					OLD.[Children2DepartureAddon4] Is Not Null
				) Or
				(
					NEW.[Children2DepartureAddon4] Is Not Null And
					OLD.[Children2DepartureAddon4] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2DepartureAddon5])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2DepartureAddon5',
			CONVERT(nvarchar(4000), OLD.[Children2DepartureAddon5], 2),
			CONVERT(nvarchar(4000), NEW.[Children2DepartureAddon5], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2DepartureAddon5] <>
					OLD.[Children2DepartureAddon5]
				) Or
			
				(
					NEW.[Children2DepartureAddon5] Is Null And
					OLD.[Children2DepartureAddon5] Is Not Null
				) Or
				(
					NEW.[Children2DepartureAddon5] Is Not Null And
					OLD.[Children2DepartureAddon5] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2DepartureAddon6])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2DepartureAddon6',
			CONVERT(nvarchar(4000), OLD.[Children2DepartureAddon6], 2),
			CONVERT(nvarchar(4000), NEW.[Children2DepartureAddon6], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2DepartureAddon6] <>
					OLD.[Children2DepartureAddon6]
				) Or
			
				(
					NEW.[Children2DepartureAddon6] Is Null And
					OLD.[Children2DepartureAddon6] Is Not Null
				) Or
				(
					NEW.[Children2DepartureAddon6] Is Not Null And
					OLD.[Children2DepartureAddon6] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2DepartureAddon7])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2DepartureAddon7',
			CONVERT(nvarchar(4000), OLD.[Children2DepartureAddon7], 2),
			CONVERT(nvarchar(4000), NEW.[Children2DepartureAddon7], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2DepartureAddon7] <>
					OLD.[Children2DepartureAddon7]
				) Or
			
				(
					NEW.[Children2DepartureAddon7] Is Null And
					OLD.[Children2DepartureAddon7] Is Not Null
				) Or
				(
					NEW.[Children2DepartureAddon7] Is Not Null And
					OLD.[Children2DepartureAddon7] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2DepartureAddon8])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2DepartureAddon8',
			CONVERT(nvarchar(4000), OLD.[Children2DepartureAddon8], 2),
			CONVERT(nvarchar(4000), NEW.[Children2DepartureAddon8], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2DepartureAddon8] <>
					OLD.[Children2DepartureAddon8]
				) Or
			
				(
					NEW.[Children2DepartureAddon8] Is Null And
					OLD.[Children2DepartureAddon8] Is Not Null
				) Or
				(
					NEW.[Children2DepartureAddon8] Is Not Null And
					OLD.[Children2DepartureAddon8] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([Children2DepartureAddon9])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'Children2DepartureAddon9',
			CONVERT(nvarchar(4000), OLD.[Children2DepartureAddon9], 2),
			CONVERT(nvarchar(4000), NEW.[Children2DepartureAddon9], 2),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Inner Join inserted NEW On 
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			where (
			
			
				(
					NEW.[Children2DepartureAddon9] <>
					OLD.[Children2DepartureAddon9]
				) Or
			
				(
					NEW.[Children2DepartureAddon9] Is Null And
					OLD.[Children2DepartureAddon9] Is Not Null
				) Or
				(
					NEW.[Children2DepartureAddon9] Is Not Null And
					OLD.[Children2DepartureAddon9] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([DateStamp])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'DateStamp',
			CONVERT(nvarchar(4000), OLD.[DateStamp], 0),
			CONVERT(nvarchar(4000), NEW.[DateStamp], 0),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Full Outer Join inserted NEW On
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			WHERE (
			
			
				(
					NEW.[DateStamp] <>
					OLD.[DateStamp]
				) Or
			
				(
					NEW.[DateStamp] Is Null And
					OLD.[DateStamp] Is Not Null
				) Or
				(
					NEW.[DateStamp] Is Not Null And
					OLD.[DateStamp] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	If UPDATE([RoomtypeNumber])
	BEGIN
    
		INSERT
		INTO dbo.AUDIT_LOG_DATA
		(
			AUDIT_LOG_TRANSACTION_ID,
			PRIMARY_KEY_DATA,
			COL_NAME,
			OLD_VALUE_LONG,
			NEW_VALUE_LONG,
			DATA_TYPE
			, KEY1, KEY2, KEY3
		)
		SELECT
			@AUDIT_LOG_TRANSACTION_ID,
		    convert(nvarchar(1500), IsNull('[ProductNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[ProductNumber], NEW.[ProductNumber]), 0), '[ProductNumber] Is Null')+' AND '+IsNull('[DateStamp]=N'''+replace(CONVERT(nvarchar(4000), IsNull(OLD.[DateStamp], NEW.[DateStamp]), 0),'''' ,'''''')+'''', '[DateStamp] Is Null')+' AND '+IsNull('[RoomtypeNumber]='+CONVERT(nvarchar(4000), IsNull(OLD.[RoomtypeNumber], NEW.[RoomtypeNumber]), 0), '[RoomtypeNumber] Is Null')),
		    'RoomtypeNumber',
			CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0),
			CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0),
			'A'
			, IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[ProductNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[ProductNumber], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[DateStamp], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[DateStamp], 0))), IsNULL( CONVERT(nvarchar(500), CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0)), CONVERT(nvarchar(500), CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)))
			
		FROM deleted OLD Full Outer Join inserted NEW On
			(CONVERT(nvarchar(4000), NEW.[ProductNumber], 0)=CONVERT(nvarchar(4000), OLD.[ProductNumber], 0) or (NEW.[ProductNumber] Is Null and OLD.[ProductNumber] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[DateStamp], 0)=CONVERT(nvarchar(4000), OLD.[DateStamp], 0) or (NEW.[DateStamp] Is Null and OLD.[DateStamp] Is Null)) AND (CONVERT(nvarchar(4000), NEW.[RoomtypeNumber], 0)=CONVERT(nvarchar(4000), OLD.[RoomtypeNumber], 0) or (NEW.[RoomtypeNumber] Is Null and OLD.[RoomtypeNumber] Is Null))
			WHERE (
			
			
				(
					NEW.[RoomtypeNumber] <>
					OLD.[RoomtypeNumber]
				) Or
			
				(
					NEW.[RoomtypeNumber] Is Null And
					OLD.[RoomtypeNumber] Is Not Null
				) Or
				(
					NEW.[RoomtypeNumber] Is Not Null And
					OLD.[RoomtypeNumber] Is Null
				)
				)
        
		SET @Inserted = CASE WHEN @@ROWCOUNT > 0 Then 1 Else @Inserted End
	END
	
	-- Watch
	
	-- Lookup
	
	IF @Inserted = 0
	BEGIN
		DELETE FROM dbo.AUDIT_LOG_TRANSACTIONS WHERE AUDIT_LOG_TRANSACTION_ID = @AUDIT_LOG_TRANSACTION_ID
	END
	-- Restore @@IDENTITY Value  
    DECLARE @maxprec AS varchar(2)
    SET @maxprec=CAST(@@MAX_PRECISION as varchar(2))
    EXEC('SELECT IDENTITY(decimal('+@maxprec+',0),'+@IDENTITY_SAVE+',1) id INTO #tmp')
End
