I have an ASP application trying to access a database in SQL Server 2008. Here is the connection string in web.config
<add name="dbConn" connectionString="data source=testsqlserver; initial catalog=test_db; user id=dbadmin; password=test"/>
I followed the instructions for creating a user and login here:
http://msdn.microsoft.com/en-us/library/aa337545.aspx
http://msdn.microsoft.com/en-us/library/aa337562.aspx
I restarted the sql server and browser services just in case but I am still getting the “Login failed for user ‘dbadmin'” error.
Am I missing something?
Make sure you have
SQL Server and Windows Authenticationmode selected:How to: Change Server Authentication Mode