我; M試圖自動使用這個腳本從SQL Server表到Excel數據的導出導出數據從SQL Server到Excel
EXEC sp_makewebtask
@outputfile = 'C:\testing.xls',
@query = 'Select * from HCIndonesia_20Jul2010..Combine_Final',
@colheaders =1,
@FixedFont=0,@lastupdated=0,@resultstitle='Testing details'
但我; M得到一個錯誤:
Msg 15281, Level 16, State 1, Procedure xp_makewebtask, Line 1 SQL Server blocked access to procedure 'sys.xp_makewebtask' of component 'Web Assistant Procedures' because this component is turned off as part of the security configuration for this server. A system administrator can enable the use of 'Web Assistant Procedures' by using sp_configure. For more information about enabling 'Web Assistant Procedures', see "Surface Area Configuration" in SQL Server Books Online.
哼。現在我另一個問題: 消息17750,級別16,狀態0,過程xp_makewebtask,行1 無法加載DLL xpweb90.dll或它引用的DLL之一。原因:126(找不到指定的模塊)。 是否有一個.dll我必須得到? – marilyn 2010-07-22 07:45:03
@marilyn - 看起來這個錯誤是由於試圖在SQL Express上運行這個SP導致的 - 這個存儲過程(根據Google)已被棄用,所以您應該考慮另一種方法來做到這一點。 – Justin 2010-07-22 07:53:40
我想你是對的。謝謝。 :) – marilyn 2010-07-22 08:16:43