Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In my website i have used prime.mdf database.
after creating mebership and roles i get new database "ASPNETDB"
so how can i integrate membership database and my current database.
I want Common database for both.

I am trying it to creating script of ASPNETDB and extract in prime school but code was not running properly, it gives error "Cannot open user default database. Login failed.Login failed for user 'DATTA\Administrator'."

Please Give me any Solution.............
Posted

1 solution

Run Aspnet_regsql command on the server you want to create the membership database.

change the web.config in your application to use that database.

check this for command line usage. http://msdn.microsoft.com/en-us/library/ms229862%28v=vs.80%29.aspx[^]

you can also run it without any command line switch and do the configuration using the wizard.
 
Share this answer
 
v2

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