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

  • Home
  • SEARCH
  • 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 8077659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:32:22+00:00 2026-06-05T15:32:22+00:00

I’m part of a small development team and we are currently moving from a

  • 0

I’m part of a small development team and we are currently moving from a model where we share the same development database to a model where we all have our own personal development databases..

Because of this, we are trying to figure out how to manage the web and app .config files to accommodate the individual databases. Clearly we want to avoid the situation where everyone will need to manually change the connection string to point to their own database then remember to change it back before checking back in!

I’m sure this is a very common problem that faces almost all development teams. Despite this, I cannot find any solutions to this problem.

I am familiar with web.config transformations using xdt syntax and while this helps with the modification of the files, it doesn’t (as far as I know) provide a way to inject in an external parameter value. For example, we would need the transformation to detect the current user, and replace the database name in the .config with one containing their username.

So, how to you solve this problem in your development team?

Thanks.

Edit:

Sorry, I missed a fairly important piece of information that prevents these answers from being acceptable. As a company, we all work remotely and remote desktop into our development environment. We effectively have one (powerful) development machine that all developers rdp into and use simultaneously. Therefore, using aliases or modifying host files etc would apply to all users equally and not provide the individual customization necessary. The SQL instance is already a local instance, it is just a local instance on the machine that is used by all developers.

  • 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-05T15:32:24+00:00Added an answer on June 5, 2026 at 3:32 pm

    I can suggest two ways of doing this.

    1. Use the same alias for your database server name so that connection strings will be identical, you can do this by putting the following line into your hosts file:

      127.0.0.1 DBSERVER

    2. Put your connection strings into external file and don’t add it to the source control. For the staging and release configurations you can add required connection strings through web config transformations.

    In the second case your web.config will look like this:

    <connectionStrings configSource="connectionStrings.config"></connectionStrings>
    

    EDIT:
    Where connectionStrings.config file is placed in the same folder but is added to ignore list under source control so that each developer will have his own copy of this file and his changes will not affect other developers. To simplify things you can create a connectionStrings.config.default file that can be used as a template so that when new developer joins the project he will create his own copy of connectionStrings.config based on this file with default values.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a text area in my form which accepts all possible characters from
I have a view passing on information from a database: def serve_article(request, id): served_article
I have an array which has BIG numbers and small numbers in it. I
I am currently running into a problem where an element is coming back from
I have a reasonable size flat file database of text documents mostly saved in
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have a small JavaScript validation script that validates inputs based on Regex. I
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i

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.