﻿EXEC dev.uspCreateSchemaViews 'T_DKT_DIC_TANULOFELADATBEADASSTATUSZ';
EXEC dev.uspCreateSchemaViews 'T_DKT_DIC_UZENETFORRASTIPUS';
EXEC dev.uspCreateSchemaViews 'T_DKT_TANULOFELADATBEADAS';
EXEC dev.uspCreateSchemaViews 'T_DKT_UZENETMUNKATERUZENOFAL';
EXEC dev.uspCreateSchemaViews 'T_DKT_DIC_OFERTEKLESTIPUS';
EXEC dev.uspCreateSchemaViews 'T_DKT_DIC_HFELOREBEIRTFELADATMEGJELENITESE';
EXEC dev.uspCreateSchemaViews 'T_DKT_UZENETALKALMAZOTTTANULOPRIVATUZENOFAL';
EXEC dev.uspCreateSchemaViews 'T_DKT_DIC_OFBEADANDOTIPUS';
EXEC dev.uspCreateSchemaViews 'T_DKT_TANULOFELADATBEADASFILE';
EXEC dev.uspCreateSchemaViews 'T_DKT_DIC_HFBEADANDOTIPUS';
EXEC dev.uspCreateSchemaViews 'T_DKT_DIC_MUNKATERTIPUS';
EXEC dev.uspCreateSchemaViews 'T_DKT_FILE';
EXEC dev.uspCreateSchemaViews 'T_DKT_DIC_HFCSATOLASENGEDELYEZESTIPUS';
EXEC dev.uspCreateSchemaViews 'T_DKT_FELADAT';
EXEC dev.uspCreateSchemaViews 'T_DKT_EGYEDIUZENOFALFELHASZNALO';
EXEC dev.uspCreateSchemaViews 'T_DKT_FELADATFILE';
EXEC dev.uspCreateSchemaViews 'T_DKT_DIC_MINDENUZENETKOZPONTIFALONTIPUS';
EXEC dev.uspCreateSchemaViews 'T_DKT_DIC_FELADATTIPUS';
EXEC dev.uspCreateSchemaViews 'T_DKT_DIC_UZENETLATHATOSAG';
EXEC dev.uspCreateSchemaViews 'T_DKT_DIC_OFUZENOFALENGEDELYEZESTIPUS';
EXEC dev.uspCreateSchemaViews 'T_DKT_DIC_CSAKTANARIRHATUZENOFALRATIPUS';
EXEC dev.uspCreateSchemaViews 'T_DKT_DIC_FELADATERTEKELESTIPUS';
EXEC dev.uspCreateSchemaViews 'T_DKT_UZENOFAL';
EXEC dev.uspCreateSchemaViews 'T_DKT_DIC_OFCSATOLASENGEDELYEZESTIPUS';
EXEC dev.uspCreateSchemaViews 'T_DKT_DIC_HFERTEKLESTIPUS';
EXEC dev.uspCreateSchemaViews 'T_DKT_DIC_UZENOFALTIPUS';
EXEC dev.uspCreateSchemaViews 'T_DKT_DIC_OFEGYEDIERTEKELESTIPUS';
EXEC dev.uspCreateSchemaViews 'T_DKT_DIC_AVATARTIPUS';
EXEC dev.uspCreateSchemaViews 'T_DKT_TANULOBEALLITAS';
EXEC dev.uspCreateSchemaViews 'T_DKT_DIC_HFUZENOFALENGEDELYEZESTIPUS';
EXEC dev.uspCreateSchemaViews 'T_DKT_DIC_OFELOREBEIRTFELADATMEGJELENITESE';
EXEC dev.uspCreateSchemaViews 'T_DKT_UZENETALKALMAZOTTUZENOFAL';
EXEC dev.uspCreateSchemaViews 'T_DKT_ALKALMAZOTTBEALLITAS';

EXEC dev.uspCreateSchemaViews 'T_TANULO';
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
