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. help asp.net,web.config,connectionstring

help asp.net,web.config,connectionstring

Scheduled Pinned Locked Moved ASP.NET
databasesecuritycsharpasp-netsql-server
4 Posts 4 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.
  • H Offline
    H Offline
    haseeb_saeed
    wrote on last edited by
    #1

    Hi, I have an application that has been developed mysomebody else and i want to continue developing it... It has the following connectionstring < name="abc1" connectionString="Data Source=SERVER\SQLEXPRESS;Initial Catalog=abc;Integrated Security=True" providerName="System.Data.SqlClient" /> in web.config file; As i understand it, the database is stored on server and database name is abc, now when i try accessing the server from sql server 2005, it would not access. what should i enter in server txtbox, authentication textbox and the above statement doesn't show any username, so is there any username or password... please provide help, Thanx, haseeb

    haseeb

    R G A 3 Replies Last reply
    0
    • H haseeb_saeed

      Hi, I have an application that has been developed mysomebody else and i want to continue developing it... It has the following connectionstring < name="abc1" connectionString="Data Source=SERVER\SQLEXPRESS;Initial Catalog=abc;Integrated Security=True" providerName="System.Data.SqlClient" /> in web.config file; As i understand it, the database is stored on server and database name is abc, now when i try accessing the server from sql server 2005, it would not access. what should i enter in server txtbox, authentication textbox and the above statement doesn't show any username, so is there any username or password... please provide help, Thanx, haseeb

      haseeb

      R Offline
      R Offline
      Rolando CC
      wrote on last edited by
      #2

      Hi, First, note that it uses a named instance (SQLEXPREESS) , so when you try to connect the server you need to specify all (SERVER\SQLEXPRESS) Second, it is using Integrated Security, so, seems you dont need any specific user/password information. And yes, the database name is : abc :suss::thumbsup:

      1 Reply Last reply
      0
      • H haseeb_saeed

        Hi, I have an application that has been developed mysomebody else and i want to continue developing it... It has the following connectionstring < name="abc1" connectionString="Data Source=SERVER\SQLEXPRESS;Initial Catalog=abc;Integrated Security=True" providerName="System.Data.SqlClient" /> in web.config file; As i understand it, the database is stored on server and database name is abc, now when i try accessing the server from sql server 2005, it would not access. what should i enter in server txtbox, authentication textbox and the above statement doesn't show any username, so is there any username or password... please provide help, Thanx, haseeb

        haseeb

        G Offline
        G Offline
        Gaurav Mahajan
        wrote on last edited by
        #3

        Use server explorer of visual studio/database explorer of visual web developer Right Click Data Connections -> Add Connection Server Name= IP Address of the remote server [must be static IP] SQl Authentication: User Name = type in user name who has authentication Password = type your password Click on Test Connection, it will work. If test not succeed then try to ping the IP Address from command prompt. If not pings, its networking fault. and if it works then check permissions of the server.

        1 Reply Last reply
        0
        • H haseeb_saeed

          Hi, I have an application that has been developed mysomebody else and i want to continue developing it... It has the following connectionstring < name="abc1" connectionString="Data Source=SERVER\SQLEXPRESS;Initial Catalog=abc;Integrated Security=True" providerName="System.Data.SqlClient" /> in web.config file; As i understand it, the database is stored on server and database name is abc, now when i try accessing the server from sql server 2005, it would not access. what should i enter in server txtbox, authentication textbox and the above statement doesn't show any username, so is there any username or password... please provide help, Thanx, haseeb

          haseeb

          A Offline
          A Offline
          Armandt__
          wrote on last edited by
          #4

          If the database is on the pc you are coding on , change >> Data Source=SERVER\SQLEXPRESS to Data Source=(local)\SQLEXPRESS

          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