Can Visual Studio share a SQL Source Control project in TFS?
PhilipD
Posts: 2 Bronze 1
I have installed the trial version of SQL Source Control, and have been successful with connecting one database to TFS source control, and updating source control, etc.
Is it possible to also connect to the same database project in TFS using Visual Studio 2017? It does not seem to be possible because Visual Studio looks for a solution file in TFS, which SQL Source Control does not seem to create.
Is it possible to also connect to the same database project in TFS using Visual Studio 2017? It does not seem to be possible because Visual Studio looks for a solution file in TFS, which SQL Source Control does not seem to create.
Answers
Have you had a look at SQL Change Automation which has a Visual Studio extension?
https://marketplace.visualstudio.com/items?itemName=vs-publisher-306627.RedgateSqlChangeAutomation
https://www.red-gate.com/products/sql-development/sql-change-automation/index
If you *really* want to be able to use both a solution with a Visual Studio SSDT Database Project and SQL Source Control on the same project create the SSDT project in Visual Studio first to generate your .sln file, then connect with SQL Source Control (which simply wants a set of .sql files and isn't picky about folder structure).
That said - you are likely to hit issues.
If you really want to work in Visual Studio I would recommend either sticking with SSDT or using Redgate's SQL Change Automation Visual Studio extension (formerly known as ReadyRoll). However, the Redgate Visual Studio extension works differently (some would say better) than either Redgate SQL Source Control or SSDT so I would do a little research first.
Alternatively, if you really like SQL Source Control, use that exclusively and don't try to integrate it with an SSDT project.
As I said, you probably could create a hybrid SQL Source Control/SSDT project if you really wanted to - just please don't.
DevOps Mentor and Coach
Director of DLM Consultants
Creator of Speaking Mentors
Microsoft Data Platform MVP
Friend of Redgate
Twitter / LinkedIn