I have a VB6 app that makes an ADODB connection with the following string:
"Provider=SQLOLEDB;Data Source=MYPC;Initial Catalog=MYDB;User ID=sa;Password=***"
I recently migrated the database from MS-SQL Server 2005 to 2008. Clients can connect with no issue. But on my machine where I have both SQL 2005 and 2008, I am unable to connect. The error on my development machine is: [DBNETLIB][ConnectionOpen (Connect()).] SQL Server does not exist or access denied. I can still connect to MYPC\SQLEXPRESS which is the SQL 2005 instance.
If I set the connection string to the following then it works on my machine:
"Provider=SQLNCLI10;Server=MYPC;Database=MYDB;Uid=sa;Pwd=***"
What do I need to do to get the connection working on my machine with the first connection string? I am assuming that there is something to be done to the database configuration to make this work. The SQL2005 instance is MYPC\SQLEXPRESS while the SQL2008 instance is MYPC.