Subscribe to
Posts
Comments

The other day I was told to install SQL Server 2000 on to a

server that was already running SQL Server 2005. The 2005 version SQL server was running as the default instance on the server. So obviously I had to install SQL Server 2000 as a named instance and I installed it as ServerName\SQL2000. The installation went fine and I was able to launch query analyzer and connected to the SQL2000 instance. The problem was no one else was able to connect to this named instance on the server remotely. It took me sometime to figure out what happened.

I verified that the SQL2000 instance was indeed running. The fact that I could connect to this instance by launching Query Analyzer on the server already proofed that. I tried creating and deleting database. No problem I saw the database files created and deleted on the server. But went I tried to connect to this instance from a remote computer using Query Analyzer it failed. I originally suspected there was firewall or something. So I tried pinging the server. I got response and it showed the same IP address as when I ping it on the Server itself. I open up SQL server network utility on the server and found the port number that the SQL2000 instance was listening on and then I tried to telnet to this port on the remote computer. I was able to connect to this port on the remote computer. So it proofed there was no firewall blocking the connection to the SQL2000 instance.

I could not connect to the instance using the name “ServerName\SQL2000″ but I have verified the port was listening so I tried to connect to “Servername,portnumber” and it worked. So what went wrong? If I use the instance name it didn’t work but went I use the port number it worked. It turned out that the SQL Browser Service on the server was not running. What this service does is to tell remote client what SQL server instance is running on the server. It make sense that if this service is not running then no one know what SQL2000 instance is and no one can connect to it. The problem was solved after I turned on the service.


Related Posts:

  • How to Connect to SQL Server Running on Non Standard Port
  • Trouble Shooting SQL Server Connection Problems, Tricks and Solutions
  • List All Permissions a User Has in SQL Server Database and Error 4064
  • MySQL Replication and MS SQL Log Shipping
  • MySQL vs SQL Server in Data File Management


  • 1 Star2 Stars3 Stars4 Stars5 Stars (6 votes, average: 4.17 out of 5)
    Loading ... Loading ...

    RSS feed | Trackback URI

    6 Comments »

    Comment by Gary Wong Subscribed to comments via email
    2009-11-02 11:04:24
    MyAvatars 0.2

    I experienced the same problem. The sql browser service has been running. I tried restart the service and did not help. Then I found out the service account that runs the sql browser service needed permission access to the sql 2000 instance. After I granted the access, I could connect to the sql 2000 instance remotely.

     
    Comment by DM
    2010-11-12 23:26:49
    MyAvatars 0.2

    Thank you!! I had the same problem. I thought it was a networking/firewall issue.

     
    Comment by Bhupinder Pathak
    2011-01-19 05:03:19
    MyAvatars 0.2

    EVen I am facing the same problem. The instance is SDMSNR\SDMSNR
    but how to use the same remotely by giving the IP address.

    Regards,
    Bhupinder Pathak

     
    Comment by Mohamed Subscribed to comments via email
    2011-02-01 17:04:51
    MyAvatars 0.2

    Thank u .. I spent so much of time trying to figure out and none of the links were helpful.
    using the comma for port# has worked!
    I was able to connect to the server with jdbc but needed the sql query analyzer to demonstrate to the user.. thanks for posting this tip!!

     
    Comment by Kevin Biasci Subscribed to comments via email
    2011-02-06 17:26:56
    MyAvatars 0.2

    You guys are legends, I had this problem that appeared after the accounts used by the SQL Browser service was modified on the two machines. Thanks a lot!

     
    Comment by FRANK
    2011-10-04 10:05:26
    MyAvatars 0.2

    Thanks this fixed my problem.

     
    Name (required)
    E-mail (required - never shown publicly)
    URI
    Subscribe to comments via email
    Your Comment (smaller size | larger size)
    You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.