 CREATE TRIGGER BACKOFFICE.TR_BOOK_DELETE
    ON BACKOFFICE._BOOK
    AFTER DELETE
-AS 
+AS
 BEGIN
   SET NOCOUNT ON;
   DECLARE @CliId int,

CREATE TRIGGER BACKOFFICE.TR_SIT_DELETE
  ON BACKOFFICE._SIT
  AFTER DELETE
AS 
BEGIN
  SET NOCOUNT ON;
  DECLARE @TabId int;

  OPEN DeleteCursorTable;
  FETCH DeleteCursorTable INTO @TabId;
  WHILE @@FETCH_STATUS = 0 BEGIN
    EXECUTE BACKOFFICE.SP_VALIDATE_TABLE @TabId;
    FETCH DeleteCursorTable INTO @TabId;
  END;
  CLOSE DeleteCursorTable;
