Connection String for SQL Server 2000 sp4 running on Windows Server 2003 R2 Standard 64-bit OS.

Posted on 2006-05-23
Last Modified: 2012-08-14
I am moving my production database from a Windows Server 2000 box to a Windows Server 2003 R2 Standard 64-bit box.

The 2003 Machine is running SQL Server 2000 sp 4.  The 2000 Machine is also running SQL Server 2000, but I'm not sure which service pack has been installed although I know that it is not sp 3 or sp 4.

I am trying to connect to the default instance on the 2003 Machine from ASP running on IIS 5.1 and have tried any number of connection string combinations, but keep getting errors that I do not get when connecting to the 2000 machine (which only has one instance).  The 2003 server has another named instance of SQL Server 2000 sp4 which is reserved for future use.

I have dsn-less:

  set Conn=Server.CreateObject("ADODB.Connection")
  Conn.Open "Provider=sqloledb;" & _
     "Network Library=DBMSSOCN;" & _
     "Data Source=XXX.XXX.XXX.XXX,1433;" & _
     "Initial Catalog=<dbase>;" & _
     "User ID=<user>;" & _

This works for the 2000 box, but not the 2003 box.  The .Open line fails with the following error:

Microsoft OLE DB Provider for SQL Server (0x80004005)
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

I have tried using a dsn:

   set Conn=Server.CreateObject("ADODB.Connection")  
   Conn.Open "dsn=transtest;" & _
      "database=transactionsSQL;" & _
      "uid=sa;Password=sql#pS@r1!Tp;" & _
      "APP=ASP Script;" & _

This works for the 2000 box, but not the 2003 box.  The .open line fails with the same error:

Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.

I used the user to set up the DSN, so I am sure that it has permissions in the database.  It does allow SQL Server Authentication.

I have tried any number of combinations of connection strings, but without success.

Clearly, I am missing something.  Please help!

Question by:NPSRWR
    LVL 142

    Accepted Solution

    >[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

    this is not a connection string problem, but a problem in the Windows 2003 server security.
    check the local firewall settings, you will need to allow the sql server traffic (over port 1433)

    Author Comment

    D'oh!  6 hours that I'll never get back....  

    Thanks so much!

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    In this article—a derivative of my blog post (—I will explore a few different perspectives on which week today's date falls within using Microsoft SQL Server. First, to frame this stu…
    I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
    Viewers will learn how the fundamental information of how to create a table.
    Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now