﻿--Migration
EXEC dev.uspCreateSchemaViews 'T_TEREM'
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'
);