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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:43:12+00:00 2026-05-16T11:43:12+00:00

I couldn’t find a question that would fit this purpose, so I’m asking it.

  • 0

I couldn’t find a question that would fit this purpose, so I’m asking it.

We have deployed an ASP.NET website that has two Connection Strings, one of them can be configured by the user, in runtime. The problem is, since I’m using .NET Framework to do this, it creates a temporary file by the time the web.config is altered, which forces my customer to grant full rights to the entire website folder, not just the web.config file. He’s not happy about it, and manager’s are questioning storing the other connection string in the same config file.

So I have the options of creating a separate config file, in a separate folder, so that they should only grant full rights to that folder, or store it on the database. The first option is about the same as it is now, so the question is:

What about storing the ConnectionString on the database?

Note that I’m not talking the application ConnectionString, but an alternative, since this application is going to integrate like three applications.

So guys, give me advantages and disadvantages, good and bad points of storing it on the database.

  • 1 1 Answer
  • 1 View
  • 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-16T11:43:13+00:00Added an answer on May 16, 2026 at 11:43 am

    I wouldn’t store Connection Strings in the database.

    I would use a Settings File instead (Settings files can be modified at runtime without causing recompilation of the application like web.config).

    You can also give different settings different scopes (User, Application, etc.) so each user can store their own configuration if you’d like without stepping on anybody else’s toes.

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

Sidebar

Related Questions

I couldn't find the answer to this in any other question. Suppose that I
Couldn't find an answer to this one. I have a WPF ListView control that
I couldn't find anything similar to this anywhere. I have an array of pointers
I couldn't find this in the documentation. If I have a complex object in
Couldn't find an answer to this question. It must be obvious, but still. I
Couldn't seem to find the answer to this question - what is the haml
Couldn't find anything about this topic. I have a Windows TCP C++ server application
Couldn't find this in the faq. Does Flurry give analytics that distinguish users? So
I couldn't find anything on this, but probably its just because I don't know
I couldn't find a suitable title for this. I'm going to express my query

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.