Click here to Skip to main content
11,802,205 members (55,000 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP.NET SQL SQL-Server
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 10-Jul-13 20:11pm
Rohan Leuva at 11-Jul-13 2:22am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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...[^]
Rohan Leuva at 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)

  Print Answers RSS
0 OriginalGriff 475
1 KrunalRohit 341
2 F-ES Sitecore 295
3 Afzaal Ahmad Zeeshan 230
4 CHill60 195
0 OriginalGriff 2,715
1 Maciej Los 1,900
2 KrunalRohit 1,797
3 CPallini 1,550
4 Richard MacCutchan 1,157

Advertise | Privacy | Mobile
Web02 | 2.8.151002.1 | Last Updated 11 Jul 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100