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 create a connection string in webconfig

How to create a connection string in webconfig

Scheduled Pinned Locked Moved ASP.NET
databasesql-serversysadmintutorialquestion
4 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.
  • D Offline
    D Offline
    DeveloperLife2015
    wrote on last edited by
    #1

    Hi All, I want to connect to a SQL Server database saved on URL database name fc000xststsql01.IVRCallCenterTest server address http://ma001xsicmw91/IVRControllerAppProd/Home/ what would be the connection string I will use in web config file ? Thanks

    V A 2 Replies Last reply
    0
    • D DeveloperLife2015

      Hi All, I want to connect to a SQL Server database saved on URL database name fc000xststsql01.IVRCallCenterTest server address http://ma001xsicmw91/IVRControllerAppProd/Home/ what would be the connection string I will use in web config file ? Thanks

      V Offline
      V Offline
      Vani Kulkarni
      wrote on last edited by
      #2

      Take a look at following links: store-connection-string-in-web-config[^] setting-up-connection-string-in-asp-net-to-sql-server[^] For Reading connection string in code: How to : Read Connection string from Web.Config[^]

      Thanks & Regards, Vani Kulkarni

      D 1 Reply Last reply
      0
      • V Vani Kulkarni

        Take a look at following links: store-connection-string-in-web-config[^] setting-up-connection-string-in-asp-net-to-sql-server[^] For Reading connection string in code: How to : Read Connection string from Web.Config[^]

        Thanks & Regards, Vani Kulkarni

        D Offline
        D Offline
        DeveloperLife2015
        wrote on last edited by
        #3

        hi Vani, the examples in these pages are just talking about a SQL Server database that is local on the same hard drive but how to connect to a database on a URL Thanks

        1 Reply Last reply
        0
        • D DeveloperLife2015

          Hi All, I want to connect to a SQL Server database saved on URL database name fc000xststsql01.IVRCallCenterTest server address http://ma001xsicmw91/IVRControllerAppProd/Home/ what would be the connection string I will use in web config file ? Thanks

          A Offline
          A Offline
          Aatif Ali from Bangalore
          wrote on last edited by
          #4

          <connectionStrings>
          <add name="REOU_DB" connectionString="Data Source=AMT-03;Initial Catalog=reouLive11-sep-2012;Persist Security Info=True;User ID=sa;Password=amt12345" providerName="System.Data.SqlClient" />

          </connectionStrings>

          :thumbsup:

          Aatif

          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