Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Compairing Dev DB to Prod DB?

Author  Topic 

Eagle_f90
Constraint Violating Yak Guru

424 Posts

Posted - 2011-12-06 : 21:34:54
I have a SQL 2008 R2 server that contains both my production DB and my development DB. I was wondring if anyone had tips on comparing the two to make sure that the design (tables, columns, views, relasionships, etc) are the same. I don't care if the data inside tables is the same, I actualy expect them not to be. Any one have tips or ideas on making sure the two DB designs are in sync?

--
If I get used to envying others...
Those things about my self I pride will slowly fade away.
-Stellvia

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2011-12-06 : 22:09:18
see tablediff Utility


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

Eagle_f90
Constraint Violating Yak Guru

424 Posts

Posted - 2011-12-07 : 07:01:37
Thanks, that does some of what I want to do but it does not look to compair views, relasionships, stored procs, etc or even support the columns I have set to varchar(MAX). You also have to specify the table each time which would get a little tidious for a database that has over 30 tables. Any other ideas?

--
If I get used to envying others...
Those things about my self I pride will slowly fade away.
-Stellvia
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2011-12-07 : 08:32:58
RedGate's SQLCompare and SQLDataCompare.

--
Gail Shaw
SQL Server MVP
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2011-12-09 : 03:07:25
Or just generate a script of all the tables, views, etc using SSMS and compare that?
Go to Top of Page
   

- Advertisement -