sp_OAStop (Transact-SQL)
Applies to:
SQL Server
Stops the server-wide OLE Automation stored procedure execution environment.
Transact-SQL syntax conventions
Syntax
sp_OAStop
Return Code Values
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.
Remarks
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.
Permissions
Requires membership in the sysadmin fixed server role or execute permission directly on this Stored Procedure. Ole Automation Procedures
configuration must be enabled to use any system procedure related to OLE Automation.
Examples
The following example stops the shared OLE Automation execution environment.
EXEC sp_OAStop;
GO
See Also
OLE Automation Stored Procedures (Transact-SQL)
OLE Automation Sample Script
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho