OLE Automation 程序伺服器組態選項
Ole Automation Procedures
使用 選項可指定是否可以在 Transact-SQL 批次內具現化 OLE Automation 物件。 您也可以使用以原則為基礎的管理或 sp_configure 預存程序來設定這個選項。 如需詳細資訊,請參閱< Surface Area Configuration>。
Ole Automation Procedures
選項可設定為下列值:
0
停用 OLE Automation Procedures。 對於 SQL Server 新的執行個體來說,此為預設值。
1
啟用 OLE Automation Procedures。
啟用 OLE Automation 程序時,對 sp_OACreate 的呼叫會啟動 OLE 共用執行環境。
您可以使用sp_configure系統預存程式來檢視和變更選項的目前值 Ole Automation Procedures
。
範例
下列範例顯示如何檢視 OLE Automation Procedures 的目前設定。
EXEC sp_configure 'Ole Automation Procedures';
GO
下列範例顯示如何啟用 OLE Automation Procedures。
sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'Ole Automation Procedures', 1;
GO
RECONFIGURE;
GO
另請參閱
sp_configure (Transact-SQL)
RECONFIGURE (Transact-SQL)
介面區組態
伺服器組態選項 (SQL Server)