Click here to Skip to main content
12,399,975 members (49,288 online)
Rate this:
 
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
Comments

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 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 11 Jul 2013
Copyright © CodeProject, 1999-2016
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