Alright, I have a classic asp application and I have a connection string to try to connect to db.
MY connection string looks as follows:
Provider=SQLOLEDB;Data Source=MYPC\MSSQLSERVER;Initial
Catalog=mydb;database=mydb;User Id=me;Password=123
Now when I'm accessing db though front-en I get this error:
Microsoft OLE DB Provider for SQL Server error '80040e4d'
Login failed for user 'me'.
I looked in the sql profiler and I got this:
Login failed for user 'me'. Reason: Password did not match that
for the login provided. [CLIENT: <named pipe>]
Error: 18456, State:8.
What I've tried:
alter login me with check_policy off
(Do not even know why I did this)Update:
4. I've tried this connection string: Provider=SQLOLEDB;Data Source=MYPC\MSSQLSERVER;Initial Catalog=mydb;database=mydb; Integrated Security = SSPI
And I got this error:
Microsoft OLE DB Provider for SQL Server error '80004005' Cannot open database mydb requested by the login. The login failed.
In my case, I had a connection string working with SQL Server 2008 R2, but after updating to SQL Server 2014, I received the mentioned error. Here is what my original connection string was like:
server=.\SQLEXPRESS;database=mydb;User Id=me;Password=123
Here is the update connection string that works with 2014:
Integrated Security=SSPI;Data Source=.\SQLEXPRESS;Database=mydb;User Id=me;Password=123
Change your connection string to:
Provider=SQLNCLI10;SERVER=MYPC\MSSQLSERVER;DataTypeCompatibility=80;Database=mydb;User Id=me;Password=123
It worked for me. Try to use IP if server is remote or (local) if it is on the same machine.
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With