MS SQL Trigger Problem/Limitations

Last post 08-11-2008, 5:38 AM by baddy. 0 replies.
Sort Posts: Previous Next
  •  08-11-2008, 5:38 AM Post number 67716

    • baddy is not online. Last active: 10-30-2008, 5:49 AM baddy
    • Top 25 Contributor
    • Joined on 04-07-2008
    • India
    • Blue Gene

    MS SQL Trigger Problem/Limitations

    Hi  –

    I want to insert/update/delete records into some other table a (say history table). & for this I'm using triggers

    Firstly I tried instead of TRIGGER for insert, delete & update statements, as instead of triggers doesn’t support for the table having FOREIGN KEY with cascading DELETE or UPDATE

    So i created After Trigger to captures these insert/update/delete statements, in after triggers, SQL Server does not allow text, ntext, or image column references in the inserted and deleted tables. As we are capturing the events (insert/update/delete) data from these two logical tables inserted and deleted.

    As my table have BLOB (image, text, text) variables. I can't change the DB schema. I have to do something using Triggers…

    But In both cases there is limitation i.e.

    INSTEAD OF TRIGGER – doesn’t support table having cascading.

    AFTER TRIGGER – doesn’t allow text, ntext, image column references in the inserted and deleted.

     

    Any Suggestion Please…!

     

    Thanks in advance,

    Baddy

     


    Thanks,
    Baddy
View as RSS news feed in XML