views:

868

answers:

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.

A: 

Here is an example:

http://www.nablasoft.com/alkampfer/index.php/2009/10/06/deploy-a-database-project-with-tfs-build/

It may be that you are simply missing the DeployToDatabase=true

Shiraz Bhaiji
Yes, that is exactly how you do it... in VS 2008 using team build 2008. What I need is info on how to do the same in tfs 2010, which is now using a xaml based windows workflow file to control the build process.
Stephen M. Redd
A: 

The closest thing I've found so far is this post from Jim Lamb (the Team Foundation PM at Microsoft).

Here he talks vaguely about creating a custom proj file and modifying the default build process template to invoke the proj file.

He also talks about using the upgrade template, which I'd previously ignored. Apparently the upgrade template can be used to invoke a 2008 build definition. I'd rather not invoke and define the entire build based on the legacy proj file though, but at least it is an option.

Neither topic contains sufficient information for me to actually make the modifications necessary, but it does give me a reasonable starting point for some future experimentation.

Stephen M. Redd
I have the same problem. Ever get an answer?
aquinas
Nope. Never did find the answer. I've put off an upgrade until 2010 goes RTM. Hopefully the release will either have more features for deployments or at least some more documentation and instructions for customizing the workflow.
Stephen M. Redd