• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 407
  • Last Modified:

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

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>;" & _
     "Password=<pwd>"

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;" & _
      "Trusted_Connection=no;"

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!

0
NPSRWR
Asked:
NPSRWR
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
>[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)
0
 
NPSRWRAuthor Commented:
D'oh!  6 hours that I'll never get back....  

Thanks so much!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now