Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9271169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:33:10+00:00 2026-06-18T15:33:10+00:00

I want to deploy a database project database.dbproj (for example) using powershell. So far,

  • 0

I want to deploy a database project “database.dbproj” (for example) using powershell. So far, I tried to deploy project using following methods,

$msbuild = ‘C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe’

$option1 = @(‘ /t:reBuild,deploy /p:TargetConnectionString=”Data
Source=(local)\SQL2008R2;Integrated Security=True;Pooling=False;”
/p:TargetDatabase=test “C:\TEMP\SVN\6000\Database\Database.dbproj”‘)

& $msbuild $option1

And

$test1 = @(‘
/target:Build,deploy’,’C:\TEMP\SVN\6000\Database\Database.dbproj’,’/property:TargetConnectionString=”Data
Source=(local)\SQL2008R2;Integrated
Security=True;Pooling=False;”‘,’/property:TargetDatabase=test’)

& $msbuild $test1

and

$test2 = $msbuild +”” + $option1

Invoke-Expression $test2

But in all cases it doesn’t do anything. I mean if I debug the code then I can see that this pointer reaches to this command and then simply moves to next line of command without doing anything.
I have similar Batch script, and it works just fine. So I am sure that it is some noob mistake that is causing this issue. What is wrong I am doing here ?

Thanks,
Jack

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T15:33:12+00:00Added an answer on June 18, 2026 at 3:33 pm

    Try the following:

    Start-Process -FilePath "C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" -ArgumentList "/t:reBuild,deploy /p:TargetConnectionString=`"Data Source=(local)\SQL2008R2;Integrated Security=True;Pooling=False;`" /p:TargetDatabase=test `"C:\TEMP\SVN\6000\Database\Database.dbproj`""
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to know which port number uses a dbproj(Database Project) in visual studio
I have a windows forms application, that i want to deploy as installation project
I have ASP.NET project and attached mdf database.I want to deploy it to remote
I want to Deploy C# application with SQL database. I am using database scripts
Is it possible to deploy a VS 2010 database project using TeamCity? I am
I want to deploy a website the first time using Rails 3.2.1 with capistrano
I've just started using a VS2010 database project to manage the release of an
Currently I use Visual Studio Database Project, so I can deploy changes to database
Using the VS 2008 GDR update, I have created a database project. I have
I have a Visual Studio 2010 Database project, from which I want to generate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.