|
|
|
date: Fri, 3 Jul 2009 09:07:01 -0700,
group: microsoft.public.sqlserver.server
back
RE: 'Generate scripts' functionality in SQL 2005 not being consistent
We generate scripts through SMO one file per object, and the object script
files are grouped under separate folders, one for each object category (e.g.
procs, triggers, tables, views, functions, constraints, roles, etc).
That makes it more manageable, not just for comparison, but for many other
source control purposes.
Linchi
"devprog@msbcomp.com" wrote:
> I'm running SQL 2005 (version 9.0.4035) and I like to use the 'Generate
> scripts' functionality in SQL Server Management Studio to create one big file
> with the scripts for an entire db as a way to track changes to the various
> objects in the db.
>
> Problem is that in 2005 the 'Generate scripts' feature does not always seem
> to generate objects in the same order when writing out the script file, even
> though I make sure to use always the same settings as before. Trying to
> compare two text files with stuff all over the place makes it next to
> impossible to detect true changes to objects.
>
> I can't figure out what makes this particular functionality behave like this
> - it was rock solid in SQL 2000 where objects would always appear in the same
> order in the file so true changes could easily be spotted.
>
> In 2005 there is a lot of 'noise' when trying to compare files and look for
> changes given that objects in the file are moved around.
>
> Did anybody else notice this? Anybody have an idea on how to possibly fix
> this? Anybody have another way to easily track changes to db objects over
> time?
date: Sun, 5 Jul 2009 21:11:01 -0700
author: Linchi Shea
|
|