SQL Server 阻止了對組件 ‘Ole Automation Procedures’ 的 過程’sys.sp_OACreate’ 的訪問,因為此組

來源:互聯網
上載者:User

錯誤:

 SQL Server 阻止了對組件 'Ole Automation Procedures' 的 過程'sys.sp_OACreate' 的訪問,因為此組件已作為此伺服器安全配置的一部分而被關閉。系統管理員可以通過使用 sp_configure 啟用 'Ole Automation Procedures'。有關啟用 'Ole Automation Procedures' 的詳細資料,請參閱 SQL Server 聯機叢書中的 "介面區配置器"。 語句已終止。

 

 

Ole Automation Procedures 選項 

使用 Ole Automation Procedures 選項可指定是否可以在 Transact-SQL 批處理中執行個體化 OLE Automation 對象。也可以使用介面區配置器工具來配置此選項。有關詳細資料,請參閱介面區配置器。

可以將 Ole Automation Procedures 選項設定為以下值。

0

禁用 OLE Automation Procedures。SQL Server 2005 新執行個體的預設值。

1

啟用 OLE Automation Procedures。

當啟用 OLE Automation Procedures 時,對 sp_OACreate 的調用將會啟動 OLE 共用執行環境。

可以使用 sp_configure 系統預存程序來查看和更改 Ole Automation Procedures 選項的當前值。

 

以下樣本顯示了如何查看 OLE Automation Procedures 的當前設定。

以下樣本顯示了如何啟用 OLE Automation Procedures。

sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'Ole Automation Procedures', 1;
GO
RECONFIGURE;
GO轉自MSDN:http://msdn2.microsoft.com/zh-cn/library/ms191188.aspx

EXEC sp_configure 'Ole Automation Procedures';
GO

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.