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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Sqlserver connecting problem

Sqlserver connecting problem

Scheduled Pinned Locked Moved ASP.NET
helpdatabasesql-serversysadminquestion
2 Posts 2 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.
  • A Offline
    A Offline
    alav
    wrote on last edited by
    #1

    Dear all we have Vs2005, and sqlserver 2000 in our local system. We create a login.aspx file. Thru this login.aspx file(which is on the local system) , we can connect to the host server database.But while we try to connect the database thru the login.aspx file (which is on the host server) , we get the following error alert message. "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.(provider:TCP Provider,error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)" Can anybody help for this problem?

    K 1 Reply Last reply
    0
    • A alav

      Dear all we have Vs2005, and sqlserver 2000 in our local system. We create a login.aspx file. Thru this login.aspx file(which is on the local system) , we can connect to the host server database.But while we try to connect the database thru the login.aspx file (which is on the host server) , we get the following error alert message. "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.(provider:TCP Provider,error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)" Can anybody help for this problem?

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

      Most likely you have the wrong name for the sql server in your connection string. You might have local host for you local application. When you install this on a web service you will need to put the correct sql server name in the connection string. Hope that helps. Ben

      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