Comparing a database with a version in TFS source control
jpooley
Posts: 2
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?
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
Comments
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.
Redgate Software
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.