Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

sp_OAStop (Transact-SQL)

Stops the server-wide OLE Automation stored procedure execution environment.

Topic link icon Transact-SQL Syntax Conventions


sp_OAStop    

0 (success) or a nonzero number (failure) that is the integer value of the HRESULT returned by the OLE Automation object.

For more information about HRESULT Return Codes, see OLE Automation Return Codes and Error Information.

A single execution environment is shared by all clients that are using the OLE Automation stored procedures. If one client calls sp_OAStop the shared execution environment will be stopped for all clients. After the execution environment has been stopped, any call to sp_OACreate restarts the execution environment.

Requires membership in the sysadmin fixed server role.

The following example stops the shared OLE Automation execution environment.

EXEC sp_OAStop;
GO
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.