Red Gate forums :: View topic - Comparing a database with a version in TFS source control
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Comparison SDK Previous Versions
SQL Comparison SDK Previous Versions forum

Comparing a database with a version in TFS source control

Search in SQL Comparison SDK Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
jpooley



Joined: 14 Jun 2011
Posts: 1
Location: Reigate

PostPosted: Tue Jun 14, 2011 4:15 pm    Post subject: Comparing a database with a version in TFS source control Reply with quote

Using SQL Compare Pro I can compare and synchronize a SQL database with a particular version source controlled in TFS.

Can I do this with the SDK?

Can you point me to the documentation that covers this?

Does anyone have any examples of how to do this for both schema and data comparisons?
_________________
Jackie
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1121
Location: My desk.

PostPosted: Wed Jun 15, 2011 5:58 pm    Post subject: Reply with quote

Thanks for your post. Are you currently using Compare within SSMS, by right-clicking a database and picking the "Schema Compare/Deploy" option? The functionality there relies on the SSMS Integration pack, and I don't think there is any way to access that using the SDK unfortunately.

Generally you'd want to check out a copy of what's in source control to a set of script folders somewhere on the machine, and you can then work with the SDK against that.
Back to top
View user's profile Send private message
scotty2012



Joined: 07 Jul 2011
Posts: 3

PostPosted: Thu Jul 07, 2011 7:53 pm    Post subject: Reply with quote

I am currently trying to implement something like this using a custom code activity which implement the SQL Compare SDK under the covers.

This is kind of where I started: http://geekswithblogs.net/jakob/archive/2009/08/13/tfs-team-build-2010-working-with-custom-code-activities.aspx and then MSDN for further reference. After you have the code activity, you can just integrate it into your workflow so that when the TFS build agent checks out the source, this code runs and your SQL source scripts directory is right there available to it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group