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. Web Development
  3. ASP.NET
  4. Database Connection Setting?

Database Connection Setting?

Scheduled Pinned Locked Moved ASP.NET
csharpdatabasetestingbeta-testing
3 Posts 3 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.
  • M Offline
    M Offline
    mythinky
    wrote on last edited by
    #1

    Helo, I am building a database driven website using VB.Net. Problem occurs when I move the website to another computer for testing deploying. I have noticed the problems is come out from the database connection setting. How could I build it thus the user can set the database connection setting according to what they have? Learning .NET

    S V 2 Replies Last reply
    0
    • M mythinky

      Helo, I am building a database driven website using VB.Net. Problem occurs when I move the website to another computer for testing deploying. I have noticed the problems is come out from the database connection setting. How could I build it thus the user can set the database connection setting according to what they have? Learning .NET

      S Offline
      S Offline
      sukesh g
      wrote on last edited by
      #2

      Hi, For this you need to provide a User Interface Screen for taking the DataBase Server Connection details like UserId,Password,Server Name. Store this values in a TextFile which is used for connecting to the Database server which User wants. Hope this solution will be solve your problem...... Sukesh. Sukesh.g

      1 Reply Last reply
      0
      • M mythinky

        Helo, I am building a database driven website using VB.Net. Problem occurs when I move the website to another computer for testing deploying. I have noticed the problems is come out from the database connection setting. How could I build it thus the user can set the database connection setting according to what they have? Learning .NET

        V Offline
        V Offline
        VenkatFor NET
        wrote on last edited by
        #3

        The best for storing Connection String is Web.Config, as this file get loaded dynamically and takes affect when something is changed in the file. Unfortunately, we can not have a user interface within a Web Application to modify this file. As an alternative, I have created a simple one form VB.NET application which dynamically loads all the databases avaiable on ther server so that the application builds connection string and modifies the web.config file. As this file is like a simple xml file to a VB.NET project application. So, on the deployed machine, if somebody wants to change the connection string, they can just go to this tool application and change the web.config. hope this helps. Bhaskara

        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