创建启用文件流的数据库
我正在尝试使用 Filestream 选项创建一个数据库。创建文件流数据库的目的是存储图像。我确实启用了文件流。这是我第一次使用 FileStream。这是我用来创建数据库的脚本
Create Database AT_DEV
ON
PRIMARY (Name = FS1,
FILENAME = 'c:\data\AT_DEV.mdf'),
FILEGROUP FileSteamGrop1 CONTAINS FILESTREAM
(NAME = FS2,
FILENAME = 'c:\data\AT_DEV_fileStream1')
LOG ON
(NAME = FS_Log1,
FILENAME = 'c:\data\AT_DEV_LOG.ldf')
,但出现此错误。
无法打开物理文件 “c:\data\AT_DEV_fileStream1”。 操作系统错误-2147024891: “0x80070005(访问被拒绝。)”。
我在这里错过了什么吗?提前致谢。
I am tring to create a database with Filestream option. The purpose to make a filestream database is to store images.I do have Filestream Enabled. And this is the first time I am using FileStream. Here is the script that i am using to create database
Create Database AT_DEV
ON
PRIMARY (Name = FS1,
FILENAME = 'c:\data\AT_DEV.mdf'),
FILEGROUP FileSteamGrop1 CONTAINS FILESTREAM
(NAME = FS2,
FILENAME = 'c:\data\AT_DEV_fileStream1')
LOG ON
(NAME = FS_Log1,
FILENAME = 'c:\data\AT_DEV_LOG.ldf')
and I am getting this error.
Unable to open the physical file
"c:\data\AT_DEV_fileStream1".
Operating system error -2147024891:
"0x80070005(Access is denied.)".
Am I missing something here. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我解决了这个问题,总结如下:
操作系统 XP SP3
Sql Server 2008 R2 企业版。
Microsoft 很清楚此问题,并针对此问题提供了修补程序。
http://support.microsoft.com/kb/978835
只需安装此修补程序并重新启动计算机即可并尝试运行脚本再次创建数据库,它将起作用。
希望这会对某人有所帮助,并且不会像我那样浪费太多时间。
I solved this issue, here is the summary:
Operating system XP SP3
Sql Server 2008 R2 Enterprise version.
Microsoft is well aware of this issue and has a hotfix for this issue.
http://support.microsoft.com/kb/978835
Just install this hotfix and restart your computer and try to run the script to create database again and it will work.
Hope this will help someone and will not waist as much time i did.