OK, I'm really at a loss on this one.
I have a small VB6 App that connects to a SQL 2005 Express database using a connection string that gets built in code. For some reason it is failing with a "login failed for user" error when running on Vista only and the user I'm trying to login as has a password associated with it. I'm certain that the password is getting added to the connection string correctly, 1. because it works on XP, 2. because I wrote the connection string to a file before it attempts to connect, and 3. because I can connect through osql using that same user and password. I've thought UAC may be causing it but I turned that off and it still fails. I've thought that running the app in compatibility mode for XP SP2 but that didn't work either. Any Ideas here are welcome. I'm stumped.
Below are the connection strings I've tried. The first one without the password works fine but the second one with the password does not.
"Provider=SQLOLEDB;Data Source=(local);User ID=TestUser;Initial Catalog=TestDatabase;"
"Provider=SQLOLEDB;Data Source=(local);User ID=TestUser;Password=test;Initial Catalog=TestDatabase;
I have a small VB6 App that connects to a SQL 2005 Express database using a connection string that gets built in code. For some reason it is failing with a "login failed for user" error when running on Vista only and the user I'm trying to login as has a password associated with it. I'm certain that the password is getting added to the connection string correctly, 1. because it works on XP, 2. because I wrote the connection string to a file before it attempts to connect, and 3. because I can connect through osql using that same user and password. I've thought UAC may be causing it but I turned that off and it still fails. I've thought that running the app in compatibility mode for XP SP2 but that didn't work either. Any Ideas here are welcome. I'm stumped.
Below are the connection strings I've tried. The first one without the password works fine but the second one with the password does not.
"Provider=SQLOLEDB;Data Source=(local);User ID=TestUser;Initial Catalog=TestDatabase;"
"Provider=SQLOLEDB;Data Source=(local);User ID=TestUser;Password=test;Initial Catalog=TestDatabase;