Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How To: Deploy SQL Database Project using Team System Build 2010 (beta 2)

Can anyone shed some light on how to get Team Build 2010 beta 2 to push a SQL database project to the SQL server?

In VSTS 2008 you'd just add MSBuild commands with the targets attribute set to "deploy" in the TFSBuild.proj file, but I'm having a little trouble translating that to the new workflow based xaml thing that 2010 uses.

What I'm looking for is how to trigger the actual deployment of the databases themselves. It is already generating the deployment scripts just fine.

like image 339
Stephen M. Redd Avatar asked Oct 27 '09 19:10

Stephen M. Redd


People also ask

How do I create a database project in TFS?

Create SQL Server Database Project In TFS. Let's start by creating the Database Project in Visual Studio. Launch Visual Studio 2015 and create the database project as shown in the image below, using File->New ->Project. Enter a name and click on OK.


1 Answers

For anyone still looking for the answer, use an Invoke Process that uses vsdbcmd.exe: http://msdn.microsoft.com/en-us/library/ff805001.aspx

like image 152
joerage Avatar answered Nov 15 '22 08:11

joerage