Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am creating an ASP.Net project using ASP.net 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
Posted
Comments
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.
 
Share this answer
 
v2
Comments
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
Prabhakaran Soundarapandian 9-Aug-12 4:37am    
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