Click here to Skip to main content
11,478,174 members (70,082 online)
Rate this: bad
good
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 21:11pm
Comments
Rohan Leuva at 11-Jul-13 2:22am
   

1 solution

Rate this: bad
good
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...
http://msdn.microsoft.com/en-us/library/ms190209.aspx[^]
  Permalink  
Comments
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 Frankie-C 160
1 Sergey Alexandrovich Kryukov 149
2 Sascha Lefèvre 145
3 F-ES Sitecore 130
4 siddartha kopparapu 103
0 Sergey Alexandrovich Kryukov 7,675
1 OriginalGriff 7,321
2 Sascha Lefèvre 3,034
3 Maciej Los 2,491
4 Richard Deeming 2,325


Advertise | Privacy | Mobile
Web01 | 2.8.150520.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