Trigger
how to create a trigger after insert data in 1 table,delete that data from another table.
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sukesh MarlaRank #461 · 5.4K reputationPosted Sep 10, 2012, 9:33 AM EDT
Check this is correct answer if it helped.
vikas kanani147 reputationPosted Sep 11, 2012, 12:06 AM EDT
Sukesh MarlaRank #461 · 5.4K reputationPosted Sep 11, 2012, 10:25 AM EDT
as per following link image datatype will be removed in future releases.
http://msdn.microsoft.com/en-us/library/ms189799.aspx
Jignesh TrivediRank #16 · 50.3K reputationPosted Sep 11, 2012, 7:49 PM EDT
First refer
http://stackoverflow.com/questions/1935691/how-to-use-text-ntext-or-image-columns-in-the-inserted-and-deleted-tables
Try..
CREATE TRIGGER SomeInsertTable
ON TableName AFTER INSERT AS
BEGIN
--Delete Action
END
In the delete action write your code.
for mare help please refer.
http://msdn.microsoft.com/en-us/library/ms189799.aspx