Click here to Skip to main content
15,168,695 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am creating an ASP.Net project using login templates in ASP.Net 2010, Login, Register User, Change-password, Recover Password etc..,

How I can change its default database in App_Data to my existing database in SQL server.

I tried changing the connection string
that not worked to me
Abdul Quader Mamun 8-Aug-12 23:53pm
Are you using ASP.NET login Control?
Arun Kumar K S 9-Aug-12 4:26am
Yes, I am using Login control

1 solution

Create the same table structure in sql database as like in the mdf file and then change the connection string in web.config and customize the register and login forms as per your need.
Arun Kumar K S 9-Aug-12 4:26am
How can I show the table structure. I tried to attach it to SQLServer 2008 but it got some error. Is there any other method to show its content
To see the structure of the table,in your top of the solution explorer you can see the show all files button and by clicking that you can see the mdf file in app_data folder.By clicking that you can see the tables with the help server explorer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900