Connection String for SQL Server 2000 sp4 running on Windows Server 2003 R2 Standard 64-bit OS.
Posted on 2006-05-23
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:
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:
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!