DROP PROCEDURE  IF EXISTS uspDeleteAllDktFeladatFile 
GO

CREATE PROCEDURE uspDeleteAllDktFeladatFile
   @pDKTFileId INT
  ,@pUserId INT
  ,@pDate DATETIME
AS
BEGIN
  SET NOCOUNT ON;

  UPDATE T_DKT_FELADATFILE_OSSZES
  SET TOROLT = 'T'
    ,DELETED = @pDate
    ,DELETER = @pUserId
    ,SERIAL = SERIAL + 1
    ,LASTCHANGED = @pDate
    ,MODIFIER = @pUserId
  WHERE C_FILEID = @pDKTFileId
    AND TOROLT = 'F'
END
GO


