﻿ALTER TABLE T_ORARENDIORA ADD C_KOZPONTILAGTOROLTORAGROUPID uniqueidentifier NULL
GO

ALTER TABLE T_ORARENDIORA ADD C_KOZPONTIORAGROUPID uniqueidentifier NULL
GO

ALTER TABLE T_INTEZMENYADATOK ADD C_KOZTERULETJELLEGENEV nvarchar(50) NULL
GO

ALTER TABLE T_MUKODESIHELY ADD C_KOZTERULETJELLEGENEV nvarchar(50) NULL
GO

EXEC dev.uspCreateSchemaViews 'T_MUKODESIHELY, T_INTEZMENYADATOK, T_ORARENDIORA'
GO

EXEC dev.sp_Global_GenerateAsyncAuditTriggerAll
GO

ALTER QUEUE auditLog.[AuditQueue]
WITH ACTIVATION (
  STATUS = ON,
  PROCEDURE_NAME = auditLog.usp_AuditProcessing,
  MAX_QUEUE_READERS = 10,
  EXECUTE AS 'Kreta_tech_user'
);
GO
