- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个 .mdf 文件,以及同一个 mdf 文件的两个 .ndf 文件。是否可以在不丢失任何数据的情况下将这些文件合并为一个 .mdf 文件?
最佳答案
是的,您可以使用 DBCC SHRINKFILE 和 Empty
选项
EMPTYFILE:(Emphasis in bold Mine)
Migrates all data from the specified file to other files in the same filegroup. In other words, EmptyFile will migrate the data from the specified file to other files in the same filegroup. Emptyfile assures you that no new data will be added to the file.
The file can be removed by using the ALTER DATABASE statement.
示例:
DBCC SHRINKFILE (nameofdatafile, EMPTYFILE);
GO
-- Remove the data file from the database.
ALTER DATABASE AdventureWorks2012
REMOVE FILE Test1data;
GO
关于sql-server - 是否可以将 ndf 文件和 mdf 文件合并为一个 mdf 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41186473/
SQL Server 使用 .mdf 作为数据文件,使用 .ldf 作为日志文件,但是 .ndf 文件是什么? 这些文件有什么好处? 最佳答案 来自Files and Filegroups Archi
我需要确定电影是丢帧还是非丢帧。 我试图在 xcode 视频框架之一(QTMovie 或 AVFoundation 中的其他框架)中的视频文件的属性中找到它。运气不太好。 我这样做是为了在 FCP-X
我需要从生产数据库中删除一些旧文件,这些文件是分区表的一部分。因此,步骤如下 - 我删除了理论上由分区函数保留在那里的数据(所有 2007 年的数据)。 然后我合并那一年的分区函数: ALTER PA
我需要从生产数据库中删除一些旧文件,这些文件是分区表的一部分。因此,步骤如下 - 我删除了理论上由分区函数保留在那里的数据(所有 2007 年的数据)。 然后我合并那一年的分区函数: ALTER PA
我有一个 .mdf 文件,以及同一个 mdf 文件的两个 .ndf 文件。是否可以在不丢失任何数据的情况下将这些文件合并为一个 .mdf 文件? 最佳答案 是的,您可以使用 DBCC SHRINKFI
有没有办法在 SQL Server 2014 中找到 .ndf 文件的位置? 我检查了这个路径的目录: C:\Program Files\Microsoft SQL Server\MSSQL12.MS
我有一个 .mdf 文件,以及同一个 mdf 文件的两个 .ndf 文件。是否可以在不丢失任何数据的情况下将这些文件合并为一个 .mdf 文件? 最佳答案 是的,您可以使用 DBCC SHRINKFI
我是一名优秀的程序员,十分优秀!