# Publish a Database project Through CI action

**URL:** https://www.finalbuilder.com/forums/t/publish-a-database-project-through-ci-action/4995
**Category:** Discussion
**Created:** [June 20, 2013, 7:40am UTC](https://www.finalbuilder.com/forums/t/publish-a-database-project-through-ci-action/4995 "2013-06-20T07:40:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lalit](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/bbe5ce/32.png) [@lalit](https://www.finalbuilder.com/forums/u/lalit)
#### Post date: [June 20, 2013, 7:40am UTC](https://www.finalbuilder.com/forums/t/publish-a-database-project-through-ci-action/4995/1 "2013-06-20T07:40:06Z")

</div>

Hi,

I have &nbsp;a solution , having 2 web application and a Dabase Project.

I'am able to build my 2 web application using MSBuild action. and by copy action iam able to copy the output to my dirtual dir.

BUT - &nbsp; **How can i publish my DB project**. MSbuild is not helpful to publish it to my SQL server.?

Thx in advance

---

<div class="post-metadata">

### Author: ![davem](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/d/67e7ee/32.png) [@davem](https://www.finalbuilder.com/forums/u/davem)
#### Post date: [June 20, 2013, 9:04am UTC](https://www.finalbuilder.com/forums/t/publish-a-database-project-through-ci-action/4995/2 "2013-06-20T09:04:30Z")

</div>

Hi,

Are you looking to build, package and deploy both your web applications and your database project all in the same MSBuild?

You can definitely build your database project with MSBuild. We have a tutorial on our wiki that discusses deploying your web applications however at this stage it does not discuss database projects.

Have a look at the following page for more information on deploying your database using MSBuild

[http://msdn.microsoft.com/en-us/lib...s.80).aspx](http://msdn.microsoft.com/en-us/library/aa833165(v=vs.80).aspx)

---

<div class="post-metadata">

### Author: ![lalit](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/bbe5ce/32.png) [@lalit](https://www.finalbuilder.com/forums/u/lalit)
#### Post date: [June 24, 2013, 2:22am UTC](https://www.finalbuilder.com/forums/t/publish-a-database-project-through-ci-action/4995/3 "2013-06-24T02:22:20Z")

</div>

Done

Using These Property in MSbuild action:

Configuration=Production  
Platform=AnyCPU  
SqlPublishProfilePath=$Workspace$\MySourceCode\NextGen DB\NextGen DB\Production.publish.xml

and&nbsp;

targets :&nbsp;Build;Publish
