Having a problem with IIS on Windows Server 2003 (using a classic ASP web application) The database server (SQL Server 2005) is on the same machine.
I create a recordset, and set its activeconnection as follows:
Dim RS
Set RS = Server.CreateObject("ADODB.Recordset")
RS.ActiveConnection = "Provider=SQLOLEDB;Network Library=DBMSSOCN;Data Source=xxx.xxx.xxx.xxx,1433;Initial Catalog=mydatabase;User ID=myusername;Password=mypassword;"
The problem is that as SOON as I set this connection string, the following error is raised:
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
I know there isnt a problem with this connection string because when I use my development server, but point the connection toward the remote database, it works great.
I have tried many MANY connection string variations (from connectionstrings.com) and they have given the same error.