DDL Trigger works sometimes!

  • Hello all,

    I have a database level DDL trigger that will propagate ALTER TABLE statements run against dbo.myTable to schema1.MyTable, schema2.MyTable and so on.

    The trigger works for both "ALTER TABLE dbo.myTable ADD columnABC" and "ALTER TABLE dbo.myTable DROP COLUMN columnABC" when these statements are run from query analyzer (or whatever it's called in SQL 2005!).

    However if I try add the column from the GUI I get the error:

    "Unable to modify table.  This SqlTransaction has completed; it is no longer usable."

    I can drop the column from the GUI with no problems.

    Any ideas?

    Thanks

    JM

     

     

  • I still have not figured this out.

    Does anyone have suggestions on debugging a DDL trigger?  Is it possible to step into it from Visual Studio as with a stored procedure?

    Thanks

    JM

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply