FILESTREAM 数据类型是否存储在 .mdf 文件中?

发布于 2024-10-13 10:03:40 字数 81 浏览 8 评论 0原文

FILESTREAM 数据类型是否存储在 .mdf 文件中?

它们可以存储在其他地方(例如单独的目录)吗?

谢谢保罗

Are FILESTREAM datatypes stored in the .mdf file?

Can they be stored anywhere else like a separate directory?

Thanks Paul

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

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

发布评论

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

评论(2

倚栏听风 2024-10-20 10:03:40

它们已经存储在文件系统上,.mdf 文件中的唯一内容是对文件位置的引用。

来自 technet

FILESTREAM 通过将 varbinary(max) 二进制大型对象 (BLOB) 数据存储为文件系统上的文件,将 SQL Server 数据库引擎与 NTFS 文件系统集成。

They are already stored on the filesystem, the only thing in the .mdf file will be a reference to the file location.

From technet:

FILESTREAM integrates the SQL Server Database Engine with an NTFS file system by storing varbinary(max) binary large object (BLOB) data as files on the file system.

与之呼应 2024-10-20 10:03:40

您可以通过 CREATE TABLE 语句中使用 FILESTREAM_ON 属性

FILESTREAM_ON { 分区方案名称
|文件组 | “默认”}

指定
FILESTREAM 数据的文件组。

如果表包含FILESTREAM数据
并且该表已分区,
必须包含 FILESTREAM_ON 子句
并且必须指定一个分区方案
FILESTREAM 文件组。这个分区
方案必须使用相同的分区
函数和分区列作为
表的分区方案;
否则,会引发错误。

You can control where the FILESTREAM objects on a partitioned table are stored by using the FILESTREAM_ON attribute in your CREATE TABLE statement:

FILESTREAM_ON { partition_scheme_name
| filegroup | "default" }

Specifies
the filegroup for FILESTREAM data.

If the table contains FILESTREAM data
and the table is partitioned, the
FILESTREAM_ON clause must be included
and must specify a partition scheme of
FILESTREAM filegroups. This partition
scheme must use the same partition
function and partition columns as the
partition scheme for the table;
otherwise, an error is raised.

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