22,209
社区成员
发帖
与我相关
我的任务
分享
d:\tools\ExportExcel.exe
3. 在sqlserver的作业中选择 powershell 类型的脚本, 文本框中为:
d:\tools\ExportExcel.bat
4. 设定计划, 多长时间执行一次。
这样就可以了。
-- To allow advanced options to be changed.
EXEC sp_configure 'show advanced options', 1
GO
-- To update the currently configured value for advanced options.
RECONFIGURE
GO
-- To enable the feature.
EXEC sp_configure 'xp_cmdshell', 1
GO
-- To update the currently configured value for this feature.
RECONFIGURE
GO