I am a pre-novice in .NET so am having issues. I need to make changes to a site but need a local copy running first. I have downloaded the sql .bak file, have restored it and can view it in the management studio. I have the solution set up in VS 2008 but can't connect to the database.
In web.config I have this
When I try to view default.aspx the login fails with
I have added the login 'SQLServername\Username' (with Windows authentication) with DB_Owner permissions to the database but still get that error.
So my question is... HELP!
In web.config I have this
Code:
<add name="DB" connectionString="Data Source=.\SQLEXPRESS; Initial Catalog=databasename;Integrated Security=True" providerName="System.Data.SqlClient" />
When I try to view default.aspx the login fails with
Code:
Exception Details: System.Data.SqlClient.SqlException: Cannot open database "database" requested by the login. The login failed.
Login failed for user 'SQLServername\Username'.
I have added the login 'SQLServername\Username' (with Windows authentication) with DB_Owner permissions to the database but still get that error.
So my question is... HELP!