|
Posted by Erland Sommarskog on 07/29/05 18:06
gabriel (spam@yahoo.fr) writes:
> I am adding foreign keys to a database and saving the generated scripts.
>
> What I do not understand is that all script begin with empty
> transactions. Why ?
Because the Table Designer is seriously buggy, and has number of
severe design flaws, and the empty transactions you see are a token
of these.
These empty transactions are harmless, however, say that you change a column
to a table that both references other tables, and are referred by other
tables. Now these transactions will no longer be empty, but will
comprise different parts of the table-update when it all should have
been one transaction.
Don't use the Table Designer to modify tables, use T-SQL instead. OK,
so you could generate scripts from the table designer, if you review
them *carefully*.
--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp
[Back to original message]
|