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 1001533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:41:19+00:00 2026-05-16T07:41:19+00:00

I have an application that I’m developing in Visual Studio 2010 that utilizes a

  • 0

I have an application that I’m developing in Visual Studio 2010 that utilizes a SQL Server database. As such, I am using a VS SQL Server 2008 Database Project.

The database project requires a target connection for which is used to build the database.

Problem:

This project is under source control for a team of developers and a build server. Some of the developers have their ’08 SQL Server instance named whereas others have a default instance. The idea of just using ‘local’ syntax will not suffice.

I need the ability to configure the database project connection outside of source control. I see that the database project offers a SQL command variables files, is this what I’m after?

What is the best practice approach on accommodating this problem?

I’m using MSBuild as part of my build server – how might this approach fit in with MSBuild?

  • 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-05-16T07:41:20+00:00Added an answer on May 16, 2026 at 7:41 am

    The Visual Studio 2010 database project properties “Deploy” tab contains a drop down labeled “Configure deployment settings for:”. This drop down supplies two options “My project settings” and “My isolated development environment”. This setting allows
    for isolation between your local development settings and the project settings which will be persisted to the .dbproj file.

    In you scenario clearing the “Target connection” currently assigned to “My project Settings” followed by submission to repository will relieve the shared connection setting.
    You could also clear the “Target database name:” setting leaving the build process in control of specifying the value for it. Once this is done developers are free to select “My isolated development environment” and configure connection
    settings without them being committed to the repository, but deploying therein.

    The build process would then take control by doing something like the following:
    msbuild.exe {projectName}.dbproj /target:Deploy /property:TargetDatabase={targetDatabaseName};TargetConnectionString=”{targetConnectionString}”
    Optionally you may opt to remove the “TargetDatabase” property favoring the project to supply this value.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have application that fetches email configuration settings such as host (SMTP Server name),
I have an application that is connecting to a SQL server to run some
I have a application that runs very well on JBoss using JSF 2. I
I have network application that handles about 40k msg/sec written using netty framework and
I have an application that uses AsyncTasks to make REST calls to a server.
We have application that involves C++ socket server, Flash client that communicates with C++
I have an application that allows, using an abstract class, people to write their
I have application server that I wrote in csharp. The server is communicating with
I have application code that inserts a record in a local database and a
I have an application that fetches announcements stored as xml files on a server

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.