Created
April 20, 2011 09:45
-
-
Save max-mulawa/930859 to your computer and use it in GitHub Desktop.
DML Trigger Snippet 6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TRIGGER dbo.Customers_stopUpdates | |
ON dbo.Customers | |
AFTER UPDATE | |
AS | |
BEGIN | |
RAISERROR ('Cutomers table cannot be updated.', 16, 1) | |
ROLLBACK TRAN | |
END | |
GO | |
DROP TRIGGER dbo.Customers_stopUpdates; | |
GO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment