Re: asp.net Membership in visual studio 2012 not working

I created database in sql server 2012 Management studio on the web server. Now I want to connect directly to the database from connectionstring without datadirectory to .mdf file. Any ideas?........Thank you

Re: asp.net Membership in visual studio 2012 not working

Did you provide the user account that the application runs under permissions to the database? If not, then Integrated Security isn't going to work and you'll either need to enable that account to login to the sql server and database, or create a sql login
and a user in that database and modify the connection string to use the login.

Also, is this a SQL server Express database? If not, make sure that you have an instance name for that database and correct the instancename in the datasource accordingly.

http://www.connectionstrings.com/sql-server/

Don't forget to mark useful responses as Answer if they helped you towards a solution.