Answered by:
How to compare these two databases and find what is the difference between these two databases?

Question
-
How to compare these two databases and find what is the difference between these two databases?
I have two development databases(dev_version1 and dev_version2) for the same project but for different versions. These database are almost same. Because each time after any changes made in the dev_version1 database, I tested it. If confirmed that every thing is OK, then I publish the changes to the dev_version2 database. But I still doubt there exist some difference between these two databases.
If there are some defference, how to synchronize them?
Wednesday, May 4, 2011 6:48 PM
Answers
-
Hi,
Red Gate SQL compare is a choice for sure, but comes with some cost.
But, if you have VS 2010 Premimum Edition or VSTS 2008 Database edition, you can try tools like SCHEMA COMPARE. Kindly have a look at this link for some more info on this.
http://msdn.microsoft.com/en-us/library/dd193250.aspx
There are some more free options also. Like one is http://dbdiff.codeplex.com/.
- Chintak (My Blog)
- Proposed as answer by Stephanie Lv Friday, May 6, 2011 5:19 AM
- Marked as answer by Stephanie Lv Tuesday, May 10, 2011 5:39 AM
Wednesday, May 4, 2011 7:47 PM
All replies
-
Red Gate SQL Compare. Will show you everything that is different and allow you to synchronize. You can download a 14 day trial that works great.Wednesday, May 4, 2011 6:54 PM
-
Hi,
Red Gate SQL compare is a choice for sure, but comes with some cost.
But, if you have VS 2010 Premimum Edition or VSTS 2008 Database edition, you can try tools like SCHEMA COMPARE. Kindly have a look at this link for some more info on this.
http://msdn.microsoft.com/en-us/library/dd193250.aspx
There are some more free options also. Like one is http://dbdiff.codeplex.com/.
- Chintak (My Blog)
- Proposed as answer by Stephanie Lv Friday, May 6, 2011 5:19 AM
- Marked as answer by Stephanie Lv Tuesday, May 10, 2011 5:39 AM
Wednesday, May 4, 2011 7:47 PM -
In addition Apexsqldiff can be used
http://www.apexsql.com/sql_tools_diff.aspx
-- Yaniv www.sqlserverutilities.com http://blogs.microsoft.co.il/blogs/yaniv_etrogiWednesday, May 4, 2011 8:05 PM -
How to compare these two databases and find what is the difference between these two databases?
I have two development databases(dev_version1 and dev_version2) for the same project but for different versions. These database are almost same. Because each time after any changes made in the dev_version1 database, I tested it. If confirmed that every thing is OK, then I publish the changes to the dev_version2 database. But I still doubt there exist some difference between these two databases.
If there are some defference, how to synchronize them?
If you are talking about Data in tables , you can use tablediff utility shiped with SQL Server 2005 and onwards . If you want to synchronize them you can either use snapshot replication ( but it refreshes the complete data) or transactional replication and run the distribution agent on demand or schedule it .. or go for log shipping if its viable.
Abhay Chaudhary OCP 9i, MCTS/MCITP (SQL Server 2005, 2008, 2005 BI) ms-abhay.blogspot.com/
Thursday, May 5, 2011 7:57 AM -
3rd vote for Red Gate tools, we have used them in our shop for about 4 years now and still love them!
Ross - Real World DBA Blog
Thursday, May 5, 2011 7:50 PM