Click here to Skip to main content
15,899,475 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
aspnetDB.mdf file database is really good for user management. I want to use it with my own database is this possible?? how can i associate(Combine aspnetdb and my owndb) to one database. aspnetDb.mdf is a file and my own db in SQLSERVER.
Posted
Comments

1 solution

I think this may help you to get nearer

To Attach a Database

In SQL Server Management Studio Object Explorer, connect to an instance of the SQL Server Database Engine, and then expand that instance.

Right-click Databases and click Attach.

In the Attach Databases dialog box, to specify the database to be attached, click Add; and in the Locate Database Files dialog box, select the disk drive where the database resides and expand the directory tree to find and select the .mdf file of the database; for example:

C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\AdventureWorks2012_Data.mdf


here is link for more detailed description...
http://msdn.microsoft.com/en-us/library/ms190209.aspx[^]
 
Share this answer
 
Comments
Thanks7872 11-Jul-13 2:27am    
OP doesnt asked how to attach database.He just wanted to implement role management functionalities with custom database.

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