Greetings.
I’m writing a web application that is supposed to connect to a SQL Server database; the connection is formed from the following database string:
<add key="DatabaseConnectionString" value="server=DEVPC1\SQLEXPRESS;uid=USERID;pwd=PASSWORD;database=DATABASE"/>
However, whenever I try and run the web application, I get a connection error, specifically:
An error occurred attempting this login:
Login failed for user 'USERID'.
Any suggestions on how to go about debugging this? I’m not really familiar with SQL, so any suggestions would be greatly appreciated.
This is is not a coding error, it indicates the authentication credentials are wrong. Are you able to connect with the database using these credentials using SSMS? Are you sure you are connect to the right server?