﻿GO
SET ANSI_NULLS, ANSI_PADDING, ANSI_WARNINGS, ARITHABORT, CONCAT_NULL_YIELDS_NULL, QUOTED_IDENTIFIER ON;

SET NUMERIC_ROUNDABORT OFF;



GO
PRINT N'Dropping unnamed constraint on [dbo].[T_DKT_FELADAT]...';


GO
EXEC dev.uspDropDefaultConstraint T_DKT_FELADAT, C_BEADASHATARIDO


GO
PRINT N'Altering [dbo].[T_DKT_FELADAT]...';


GO
ALTER TABLE [dbo].[T_DKT_FELADAT] ALTER COLUMN [C_BEADASHATARIDO] DATETIME NULL;


GO
PRINT N'Altering [dbo].[T_DKT_FELADAT]...';


GO
ALTER TABLE [dbo].[T_DKT_FELADAT]
    ADD [C_EGYEDIERTEKELESTIPUSID] INT             NULL,
        [C_PONTSZAM]               NUMERIC (10, 2) NULL;



GO
PRINT N'Creating unnamed constraint on [dbo].[T_DKT_FELADAT]...';


GO
ALTER TABLE [dbo].[T_DKT_FELADAT]
    ADD DEFAULT (getdate()) FOR [C_BEADASHATARIDO];



GO
PRINT N'Update complete.';


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