加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MsSql教程 > 正文

sql-server – 在SQL Server Management Studio中删除数据库时,

发布时间:2020-12-12 08:40:22 所属栏目:MsSql教程 来源:网络整理
导读:右键单击SQL Server Management Studio的Treeview中的数据库并使其脱机然后选择“删除”选项时,是否将分配给数据库的所有空间释放回o / s文件系统池? 解决方法 如果在删除数据库之前使数据库脱机,则不会从磁盘中删除数据文件.请在线查看本书的这一部分. http
右键单击SQL Server Management Studio的Treeview中的数据库并使其脱机然后选择“删除”选项时,是否将分配给数据库的所有空间释放回o / s文件系统池?

解决方法

如果在删除数据库之前使数据库脱机,则不会从磁盘中删除数据文件.请在线查看本书的这一部分.

http://msdn.microsoft.com/en-us/library/ms178613.aspx

Dropping a database deletes the database from an instance of SQL
Server and deletes the physical disk files used by the database. If the database or any one of its files is offline when it is dropped,the disk files are not deleted. These files can be deleted manually by using Windows Explorer. To remove a database from the current server without deleting the files from the file system,use sp_detach_db.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读