什么是 NDF 文件?

发布于 2024-08-30 08:01:14 字数 158 浏览 3 评论 0原文

SQL Server 使用

  • .mdf 作为数据文件,使用
  • .ldf 作为日志文件,
  • 但是 .ndf 文件是什么?

这些文件有什么好处?

SQL Server uses

  • .mdf for data files and
  • .ldf for log files,
  • but what are .ndf files?

What are the benefits of these files?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

明天过后 2024-09-06 08:01:14

来自文件和文件组体系结构

辅助数据文件

辅助数据文件构成除主数据文件之外的所有数据文件。有些数据库可能没有任何辅助数据文件,而其他数据库则有多个辅助数据文件。 建议辅助数据文件的文件扩展名是 .ndf。

也来自 文件扩展名 NDF - Microsoft SQL Server 辅助数据文件

请参阅 了解文件和文件组

辅助数据文件是可选的,是
用户定义,并存储用户数据。
辅助文件可用于传播
通过放置将数据跨多个磁盘
每个文件位于不同的磁盘驱动器上。
此外,如果数据库超过
单个Windows的最大尺寸
文件,您可以使用辅助数据文件
这样数据库就可以继续增长。

推荐的文件扩展名
辅助数据文件是 .ndf。

/

例如三个文件,Data1.ndf,
Data2.ndf 和 Data3.ndf 可以是
在三个磁盘驱动器上创建,
分别分配给
文件组 fgroup1.然后可以是一个表
专门在文件组上创建
fgroup1。查询数据来自
表将分布在三个
磁盘;这将提高性能。
同样的性能提升可以
通过使用单个文件来完成
在 RAID(冗余阵列)上创建
独立磁盘)条带集。
但是,文件和文件组可以让您
轻松地将新文件添加到新磁盘。

From Files and Filegroups Architecture

Secondary data files

Secondary data files make up all the data files, other than the primary data file. Some databases may not have any secondary data files, while others have several secondary data files. The recommended file name extension for secondary data files is .ndf.

Also from file extension NDF - Microsoft SQL Server secondary data file

See Understanding Files and Filegroups

Secondary data files are optional, are
user-defined, and store user data.
Secondary files can be used to spread
data across multiple disks by putting
each file on a different disk drive.
Additionally, if a database exceeds
the maximum size for a single Windows
file, you can use secondary data files
so the database can continue to grow.

The recommended file name extension
for secondary data files is .ndf.

/

For example, three files, Data1.ndf,
Data2.ndf, and Data3.ndf, can be
created on three disk drives,
respectively, and assigned to the
filegroup fgroup1. A table can then be
created specifically on the filegroup
fgroup1. Queries for data from the
table will be spread across the three
disks; this will improve performance.
The same performance improvement can
be accomplished by using a single file
created on a RAID (redundant array of
independent disks) stripe set.
However, files and filegroups let you
easily add new files to new disks.

九局 2024-09-06 08:01:14

辅助数据文件是可选的,是用户定义的,存储用户数据。通过将每个文件放在不同的磁盘驱动器上,辅助文件可用于跨多个磁盘传播数据。此外,如果数据库超过单个 Windows 文件的最大大小,您可以使用辅助数据文件,以便数据库可以继续增长。

来源:MSDN:了解文件和文件组

建议的辅助文件扩展名数据文件是 .ndf,但这不是强制的。

Secondary data files are optional, are user-defined, and store user data. Secondary files can be used to spread data across multiple disks by putting each file on a different disk drive. Additionally, if a database exceeds the maximum size for a single Windows file, you can use secondary data files so the database can continue to grow.

Source: MSDN: Understanding Files and Filegroups

The recommended file name extension for secondary data files is .ndf, but this is not enforced.

坚持沉默 2024-09-06 08:01:14

NDF文件是Microsoft SQL Server的用户定义的辅助数据库文件,扩展名为.ndf,用于存储用户数据。此外,当数据库文件的大小自动超出其指定大小时,您可以使用 .ndf 文件进行额外存储,并且 .ndf 文件可以存储在单独的磁盘驱动器上。每个 NDF 文件都使用与其相应的 MDF 文件相同的文件名。如果不附加关联的 .mdf 文件,我们就无法在 SQL Server 中打开 .ndf 文件。

An NDF file is a user defined secondary database file of Microsoft SQL Server with an extension .ndf, which store user data. Moreover, when the size of the database file growing automatically from its specified size, you can use .ndf file for extra storage and the .ndf file could be stored on a separate disk drive. Every NDF file uses the same filename as its corresponding MDF file. We cannot open an .ndf file in SQL Server Without attaching its associated .mdf file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文