当我尝试使用以下查询创建具有启用文件流的数据库的简单数据库时:
CREATE DATABASE Archive
ON
PRIMARY ( NAME = Arch1,
FILENAME = 'c:\data\archdat1.mdf'),
FILEGROUP FileStreamGroup1 CONTAINS FILESTREAM( NAME = Arch3,
FILENAME = 'c:\data\filestream1')
LOG ON ( NAME = Archlog1,
FILENAME = 'c:\data\archlog1.ldf')
GO
那么它会出现以下错误..
Msg 5120, Level 16, State 106, Line 1
Unable to open the physical file "c:\data\filestream1". Operating system error -2147024891: "0x80070005(failed to retrieve text for this error. Reason: 1815)".
我确信每个人都对“c:\data\”目录具有完全控制权限。我确信文件流已启用级别 1
我还尝试将 DB 文件位置更改为默认的 sql 数据文件夹,结果相同。
我也尝试手动创建“c:\data\filestream1”目录我会遇到以下错误:
Msg 5170, Level 16, State 2, Line 1
Cannot create file 'c:\data\filestream1' because it already exists. Change the file path or the file name, and retry the operation.
如果有人知道如何解决这个问题,请帮助我..
提前致谢