I am adding some triggers which fire and raise errors, and the triggers are functioning properly, except for the RAISERROR. The errors are being logged into the Application Event Log. However, the error messages are not appearing on the client's screen. Here is one of my triggers:
CREATE TRIGGER version_manager_id_required
ON trkscrsl
FOR INSERT,UPDATE
AS
IF update(x17)
BEGIN
IF (SELECT x17 FROM INSERTED)=61 BEGIN
RAISERROR (60002,16,1)
ROLLBACK TRANSACTION
RETURN
END
END
GO Remove "nospam" from my email address to reply.
CREATE TRIGGER version_manager_id_required
ON trkscrsl
FOR INSERT,UPDATE
AS
IF update(x17)
BEGIN
IF (SELECT x17 FROM INSERTED)=61 BEGIN
RAISERROR (60002,16,1)
ROLLBACK TRANSACTION
RETURN
END
END
GO Remove "nospam" from my email address to reply.