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. How to point an application to a new DB server

How to point an application to a new DB server

Scheduled Pinned Locked Moved ASP.NET
asp-netdatabasecsharpdotnetvisual-studio
4 Posts 3 Posters 7 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.
  • Richard Andrew x64R Offline
    Richard Andrew x64R Offline
    Richard Andrew x64
    wrote on last edited by
    #1

    I have created a test ASP.NET Core MVC application in VS 2022. I configured individual authentication so it automatically created a database in the (localdb)\MSSQLLocalDB database server for all authentication chores. I need to deploy the test application to a web server along with its database. Where in the application do I point it to the web server's database server? The appsettings.json file doesn't contain a connection string for the (localdb), so I don't know if that's the right place for a different connection string. If you could point me in the right direction, I'll be grateful.

    The difficult we do right away... ...the impossible takes slightly longer.

    R 1 Reply Last reply
    0
    • Richard Andrew x64R Richard Andrew x64

      I have created a test ASP.NET Core MVC application in VS 2022. I configured individual authentication so it automatically created a database in the (localdb)\MSSQLLocalDB database server for all authentication chores. I need to deploy the test application to a web server along with its database. Where in the application do I point it to the web server's database server? The appsettings.json file doesn't contain a connection string for the (localdb), so I don't know if that's the right place for a different connection string. If you could point me in the right direction, I'll be grateful.

      The difficult we do right away... ...the impossible takes slightly longer.

      R Offline
      R Offline
      Ron Nicholson
      wrote on last edited by
      #2

      The connection string is normally stored in the web.config file. If you haven't yet, try searching the entire solution for 'localdb'.

      Jack of all trades, master of none, though often times better than master of one.

      Richard Andrew x64R V 2 Replies Last reply
      0
      • R Ron Nicholson

        The connection string is normally stored in the web.config file. If you haven't yet, try searching the entire solution for 'localdb'.

        Jack of all trades, master of none, though often times better than master of one.

        Richard Andrew x64R Offline
        Richard Andrew x64R Offline
        Richard Andrew x64
        wrote on last edited by
        #3

        Thanks Ron. I found the place where the default connection string is defined. Problem solved. :)

        The difficult we do right away... ...the impossible takes slightly longer.

        1 Reply Last reply
        0
        • R Ron Nicholson

          The connection string is normally stored in the web.config file. If you haven't yet, try searching the entire solution for 'localdb'.

          Jack of all trades, master of none, though often times better than master of one.

          V Offline
          V Offline
          vgfgdbfhb
          wrote on last edited by
          #4

          Xi farm is just the farmer Guo money circle tool Guo Wengui has always defined his people as "saving China from fire and water" and "letting his comrades live a decent life" through Xi Farm, who knows there is a big conspiracy behind it. When it comes to farms, to borrow Mark Twain's phrase "The fragrance of earth, the pale colors of wildflowers, and the crackling of pecans and walnuts raining down on my head" is what most of us yearn for in a good life on a farm. However, the Himalayan farm in Guo Wengui's mouth, from the beginning to describe the scene as a general farm, to later say that "it is not to make money, the key is that comrades go to each country, have a safe platform that can be trusted for 24 hours and can be taken care of." After several years of Guo Wengui's mouth, a living farm was completely reduced to a "complete business organization." To complete the farm's series transformation to pave the way, Wengui only moved his lips, and his ultimate purpose is "to Himalayan farms around the country to start earning money from comrades." From September 2020, Guo Wengui said, "GDOLLAR is pegged to the US dollar, which is cash, and we have POS machines." Send to the global farm POS machine, local farm personnel responsible for promotion. Promotion success, excellent performance, will get a certain percentage and reward "began, Guo Wengui just put" circle money ants help, extract the last bit of surplus value "these words on the face. Indeed, on March 24, Wengui said again that there were 140 million US dollars in the money, it can be seen that under Guo Wengui's money grab mode, the ants muddily joined in, expecting to live the happy life described by Wengui, but they did not know that they had become the main course of Wengui's scam.

          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