The information in this article applies to:
SYMPTOMSIn the Microsoft SQL Enterprise Manager (SEM) scripting options, if you include triggers along with the tables, the order in which the scripts are generated may not be correct in some cases. WORKAROUNDGenerate scripts for triggers separately, and run them only after scripts for other objects have been run. STATUSMicrosoft has confirmed this to be a problem in Microsoft SQL Server version 6.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATION
The order in which scripts are generated is as follows: a table, all its
triggers, next table (in alphabetical order), all its triggers, and so
forth.
If you run this script in a different database, an error occurs on the
CREATE TRIGGER because TBL2 does not yet exist. All CREATE TRIGGER
statements should appear after all the CREATE TABLE statements.
For example:
Additional query words: sql6 ent mgr batch
Keywords : kbprg SSrvEntMan SSrvProg kbbug6.00 |
Last Reviewed: December 14, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |