本文介绍了将数据从SQL Server导出到Excel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
i; m正在尝试使用此脚本自动将数据从sql server表导出到excel
i;m trying to automate the exporting of data from an sql server table to an excel using this script
EXEC sp_makewebtask
@outputfile = 'C:\testing.xls',
@query = 'Select * from HCIndonesia_20Jul2010..Combine_Final',
@colheaders =1,
@FixedFont=0,@lastupdated=0,@resultstitle='Testing details'
但是我遇到错误:
推荐答案
此博客文章可能会对您有所帮助.
This blog article might help you.
听起来您只需要做:
sp_configure 'Web Assistant Procedures', 1
RECONFIGURE
并且您的脚本应该可以正常工作(只要您对SQL Server拥有权限)
And your script should work (as long as you have permissions on the SQL server)
这篇关于将数据从SQL Server导出到Excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!