Comments
1 comment
-
Textual object renames are one of the perennial problems of SQL Compare; as the actual object text is stored in SQL Server, we have to refactor objects as we go. We currently don't do this for DML triggers, however there is a bug about it (SC-3926) that is due to be fixed for the 8.0 release.
Simon C
Add comment
Please sign in to leave a comment.
CREATE TRIGGER trgname ON TableName ...
Normally I won't specify the schema name as schema will be created in the schema of the table.
After creating of a schema, I can use SQL compare to move the CREATE Trigger script/
Problem exists when I do any changes to the trigger.
After doing any changes when you generate scripts from the SQL Compare, it generates
ALTER triggername ON tablename
But sql server needs following format
ALTER schemaname.triggername on TABLEname