Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Enable Database connection change

Enable Database connection change

Scheduled Pinned Locked Moved C#
databasesysadminquestionannouncementworkspace
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    redivider
    wrote on last edited by
    #1

    I have an application that I setup by adding a DataSet .xsd file to my project and then dragging tables from the Server Explorer data connections area. This automatically sets up the connection string in about a dozen places. Now I want the user to be able to point to the database they want to use, but I'm not sure where the connection needs to be updated. The connection string exist in the main solution's Properties\Settings.settings, Properties\Settings.designer.cs In the data access layer project's app.config Properties\Settings.settings, Properties\Settings.designer.cs How would i update this value? From where (and how) should i read it when the app starts up, or if its being updated programatically would i have to save it to a custom file and read if from there?

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups