【发布时间】:2016-07-11 02:32:54
【问题描述】:
我有下表列:
[Content] [varbinary](max) NULL
我想让它成为一个文件流列,所以我尝试了:
alter table dbo.Files
alter column Content add filestream
但我得到了错误:
Incorrect syntax near 'filestream'.
我也试过
alter table dbo.Files
alter column Content varbinary(max) filestream not null
但我得到了错误:
Cannot alter column 'Content' in table 'Files' to add or remove the FILESTREAM column attribute.
如何将文件流添加到现有列?
【问题讨论】:
-
我怀疑您可能需要创建另一列“alter table dbo.Files add Content_new varbinary(max) filestream not null”,然后将原始列中的内容复制过来。
标签: sql-server tsql sql-server-2014