sp_OADestroy (Transact-SQL)
SQL Server 2005
Destroys a created OLE object.
Transact-SQL Syntax Conventions
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.