Re: Last Modified Date of table, queries, views, sprocs
- From: dvdtknsn <dvdtknsn@xxxxxxxxx>
- Date: Wed, 31 Oct 2007 20:19:52 -0000
On Oct 29, 4:23 pm, "Aaron Bertrand [SQL Server MVP]"
<ten....@xxxxxxxxxxxxxx> wrote:
WhileRed Gate'sSQL Compare can save you after the fact, the true answer
is that all objects should be kept under version control, and you check
out the objects as you need to change them. Once you are done, you check
in the changes. Then you can extract the changed files by seeing what
has changed since the previous baseline.
That works for stored procedures but it can be harder to do for tables, e.g.
if you add indexes, change column datatypes, etc. What do you store? A new
CREATE TABLE script? What good does that do you?
Red-Gate allows you to compare your test and production systems, build a
script that will synchronize them, and then store THAT in source control.
All depends on what you're after, I guess. Personally I don't consider SQL
Compare an "after the fact" tool.
Aaron
Hi Aaron,
SQL Compare 6 Pro (released in June) is now not only able to compare a
live database, but also to compare a database's schema creation
scripts with a target database to generate a SQL change script. So in
theory it is possible to maintain the table creation scripts and
nothing more. Of course there are some situations where this doesn't
work, for example if a significant change has been made to the target
database, such as a table split or an object rename. However, this is
no different to problems encountered comparing two live databases
where one has been significantly changed or refactored.
Kind regards,
David Atkinson
Red Gate Software
.
- References:
- Re: Last Modified Date of table, queries, views, sprocs
- From: Erland Sommarskog
- Re: Last Modified Date of table, queries, views, sprocs
- From: Aaron Bertrand [SQL Server MVP]
- Re: Last Modified Date of table, queries, views, sprocs
- Prev by Date: Re: Parameterizing an SSIS package
- Next by Date: how to determine how many milliseconds a segment of code takes to execute in TSQL on sql server 2005?
- Previous by thread: Re: Last Modified Date of table, queries, views, sprocs
- Next by thread: Square Brackets
- Index(es):
Relevant Pages
|