Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Red Gate SQL Compare vs. VS2010 Ultimate

I used to use SQL2000 and Red Gate SQL Compare 3.2 and I was a happy camper. I wouldn't worry about tracking the changes that I make to the dev database until all the coding was done and I needed to compile a list of scripts to bring the prod db in sync with the prod.

This is where SQL Compare and to some degree, SQL Data Compare, were invaluable in

  1. pointing out the differences and even more importantly,
  2. helping me generate the SQLs to bring the prod db in sync with the dev db.

I see that VS2010 Ultimate allows me to compare two schemas, but does do #2? I believe it is suppose to but it ain't obvious to me how to do that.

Any kick in the right direction would be an immediate vote up or better. ty.

like image 550
Chad Avatar asked Jun 08 '10 22:06

Chad


4 Answers

Yes, it does (2). To achieve this, run the comparison (Data/Schema Compare/New Schema Comparison), choose the objects you want to update, and then right click on the grid or go to the Data/Schema Compare menu and select Refresh Update script. If you can't see an upgrade script now, select Show Schema Update Script which is in the same menu.

If you want a more user-friendly and versatile tool, please consider trying SQL Compare 8! (I'm the product manager)

like image 109
David Atkinson Avatar answered Nov 16 '22 00:11

David Atkinson


Caution plug,I wrote a blog entry to compare SQL Data in VS2010 Ultimate and Premium that you might wanna check out http://zubairdotnet.blogspot.com/2010/07/fun-with-vs2010-ultimate-comparing-sql.html

like image 40
Zubair Ahmed Avatar answered Nov 16 '22 02:11

Zubair Ahmed


As far as I can tell, this tool in VS2010 Ultimate will only work with SQL Server 2005 and 2008. I tried yesterday to do a compare between my production SQL 2000 instance and a dev 2008 instance, and it flat-out said it will not work with anything prior to 2005. RedGate Compare, of course, had no issues at all.

like image 29
Mike K Avatar answered Nov 16 '22 01:11

Mike K


Drop every thing, and try SQL Server Data Tools October 2013 release for Visual Studio 2012: http://msdn.microsoft.com/en-US/data/tools.aspx, choose 'Get It' and then 'Download SSDT for Visual Studio 2012', or you can go straight there on:

http://msdn.microsoft.com/en-us/jj650015

It has Schema Compare and Data Compare, and even allows SQL Server 2014 CTP2 connections.

like image 44
OzBob Avatar answered Nov 16 '22 02:11

OzBob