SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [Lending].[uspHMDAUpdateExport] (@BatchId int, @ModifiedById int)
AS
BEGIN
SET NOCOUNT ON
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
DISABLE TRIGGER Lending.utrHMDAAudit ON Lending.HMDA
UPDATE Lending.HMDA SET IsExported = 1,ModifiedById = @ModifiedById WHERE BatchId = @BatchId
ENABLE TRIGGER Lending.utrHMDAAudit ON Lending.HMDA
END
SET QUOTED_IDENTIFIER OFF
GO
GRANT EXECUTE ON [Lending].[uspHMDALarInfoGet] TO [caApplication] AS [dbo]
GO
Says the DISABLE and ENABLE syntax is wrong. Why?