如何在SQLSERVER中将我的aspnetDB.mdf与我自己的数据库一起使用

编程入门 行业动态 更新时间:2024-10-27 21:14:42
本文介绍了如何在SQLSERVER中将我的aspnetDB.mdf与我自己的数据库一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

aspnetDB.mdf文件数据库非常适合用户管理。我想用它自己的数据库这可能吗?我如何关联(将aspnetdb和我的owndb结合)到一个数据库。 aspnetDb.mdf是SQLSERVER中的一个文件和我自己的数据库。

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.

推荐答案

我认为这可能会帮助你更接近 附加数据库 在SQL Server Management Studio对象资源管理器中,连接到SQL Server数据库引擎的实例,然后展开该实例。 右键单击数据库,然后单击附加。 在附加数据库对话框中,指定要附加的数据库,单击添加;在定位数据库文件对话框中,选择数据库所在的磁盘驱动器,然后展开目录树以查找并选择数据库的.mdf文件;例如: 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

这里是更详细的说明链接... msdn.microsoft/en-us/library/ms190209.aspx [ ^ ]

更多推荐

如何在SQLSERVER中将我的aspnetDB.mdf与我自己的数据库一起使用

本文发布于:2023-11-12 16:47:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1582013.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自己的   与我   中将   数据库   如何在

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!