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. Connection string web.config file

Connection string web.config file

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netdatabasesql-server
6 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.
  • S Offline
    S Offline
    Subin Alex
    wrote on last edited by
    #1

    Hi, I've created a web portal and i am planning to host it. I am using AsP.NET 2005 and SQL SERVER 2000 and my problem is that: I want to know how to set the connection string in web.config file ,to be accessed by the application in a remote webserver (in the case of local connection it's OK) Plz help me out. Thankx in Advance !!

    K 1 Reply Last reply
    0
    • S Subin Alex

      Hi, I've created a web portal and i am planning to host it. I am using AsP.NET 2005 and SQL SERVER 2000 and my problem is that: I want to know how to set the connection string in web.config file ,to be accessed by the application in a remote webserver (in the case of local connection it's OK) Plz help me out. Thankx in Advance !!

      K Offline
      K Offline
      kumar_k508
      wrote on last edited by
      #2

      Hi, In web.config file ,put the server credentials in the connection string...

      S Kumar

      S 1 Reply Last reply
      0
      • K kumar_k508

        Hi, In web.config file ,put the server credentials in the connection string...

        S Kumar

        S Offline
        S Offline
        Subin Alex
        wrote on last edited by
        #3

        cud plz get me one example .

        R 1 Reply Last reply
        0
        • S Subin Alex

          cud plz get me one example .

          R Offline
          R Offline
          Reza Raad
          wrote on last edited by
          #4

          sample here: add name="MapsaLoanConnectionString" connectionstring="Data Source=192.168.0.220;Initial Catalog=Mapsa;Persist Security Info=True;User ID=databaseUser;Password=123" providername="System.Data.SqlClient"

          Human knowledge belongs to the world http://www.rad.pasfu.com/index.php

          S 1 Reply Last reply
          0
          • R Reza Raad

            sample here: add name="MapsaLoanConnectionString" connectionstring="Data Source=192.168.0.220;Initial Catalog=Mapsa;Persist Security Info=True;User ID=databaseUser;Password=123" providername="System.Data.SqlClient"

            Human knowledge belongs to the world http://www.rad.pasfu.com/index.php

            S Offline
            S Offline
            Subin Alex
            wrote on last edited by
            #5

            thanx ! but i wud like to get the DataSource to be autodetected by the code not with IP Address

            K 1 Reply Last reply
            0
            • S Subin Alex

              thanx ! but i wud like to get the DataSource to be autodetected by the code not with IP Address

              K Offline
              K Offline
              kumar_k508
              wrote on last edited by
              #6

              Hi, you can also use different connections at the runtime ,just you have to declare your connection string at runtime ie; in .vb or .cs file

              S Kumar

              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