I wrote my first trigger and it giving error
UES TRY
GO
CREATE TRIGGER cust_update
ON TRY
FOR UPDATE
AS
IF UPDATE (custno)
BEGIN TRANSACTION
RAISERROR('CUST NO CANNOT BE UPDATED',10,1)
ROLLBACK TRANSACTION
END
Any idea
`
skyyadav
0
Light Poster
Recommended Answers
Jump to PostIm gonna toss my 2cents out, and with fair warning Im not 100% sure, as I don't tend to handle the triggers for our DB, but as any good soldier, Im aware of them and my understand of how they work. :-/
I believe you should set the trigger on …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.