使用sp_makewebtask导出数据到XML时报错
我使用
EXEC sp_makewebtask
@outputfile = 'c:\IIMS_Key.xml',
@query='SELECT * FROM IIMS_Key FOR XML AUTO',
@templatefile='c:\IIMS_Key.txt'
时报错,错误如下:
消息 16822,级别 11,状态 1,过程 sp_makewebtask,第 131 行
SQL Web 助手: 无法打开该模板文件。
我已经运行:
sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
sp_configure 'Web Assistant Procedures', 1;
GO
RECONFIGURE;
使用sp_configure 'Web Assistant Procedures' 查看结果为:
Web Assistant Procedures 0 1 1 1