Skip to content

Latest commit

 

History

History
57 lines (44 loc) · 2.36 KB

ole-automation-procedures-server-configuration-option.md

File metadata and controls

57 lines (44 loc) · 2.36 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic helpviewer_keywords
Ole Automation Procedures (server configuration option)
Learn about the Ole Automation Procedures option. See how it specifies whether SQL Server can instantiate OLE Automation objects within Transact-SQL batches.
rwestMSFT
randolphwest
03/02/2017
sql
configuration
conceptual
Ole Automation Procedures option

Ole Automation Procedures (server configuration option)

[!INCLUDE SQL Server]

Use the Ole Automation Procedures option to specify whether OLE Automation objects can be instantiated within [!INCLUDEtsql] batches. This option can also be configured using the Policy-Based Management or the sp_configure stored procedure. For more information, see Surface Area Configuration.

The Ole Automation Procedures option can be set to the following values.

0
OLE Automation Procedures are disabled. Default for new instances of [!INCLUDEssNoVersion].

1
OLE Automation Procedures are enabled.

When OLE Automation Procedures are enabled, a call to sp_OACreate will start the OLE shared execution environment.

The current value of the Ole Automation Procedures option can be viewed and changed by using the sp_configure system stored procedure.

Examples

The following example shows how to view the current setting of OLE Automation procedures.

EXEC sp_configure 'Ole Automation Procedures';  
GO  

The following example shows how to enable OLE Automation procedures.

sp_configure 'show advanced options', 1;  
GO  
RECONFIGURE;  
GO  
sp_configure 'Ole Automation Procedures', 1;  
GO  
RECONFIGURE;  
GO  

See Also

sp_configure (Transact-SQL)
RECONFIGURE (Transact-SQL)
Surface Area Configuration
Server Configuration Options (SQL Server)