Connection Strings between Web Application and SQL Server
Posted
by Raven Dreamer
on Stack Overflow
See other posts from Stack Overflow
or by Raven Dreamer
Published on 2010-06-09T15:05:08Z
Indexed on
2010/06/09
15:12 UTC
Read the original article
Hit count: 305
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.
© Stack Overflow or respective owner