SQL Server 6.5 includes new OLE Automation stored procedures. The following table lists the new stored procedures, which are explained in this part. Features are in alphabetical order.
Feature | New | Enhanced |
---|---|---|
sp_OACreate | · | |
sp_OADestroy | · | |
sp_OAGetErrorInfo | · | |
sp_OAGetProperty | · | |
sp_OAMethod | · | |
sp_OASetProperty | · | |
sp_OAStop | · |
The OLE Automation stored procedures allow you to use standard OLE Automation objects within a Transact-SQL statement batch. Because these OLE objects reside and run on the SQL Server computer, they behave as OLE extended stored procedures.
You can use existing OLE Automation objects, such as the SQL Distributed Management Objects (SQL-DMO). You can also use 32-bit Visual Basic 4.0 to create your own OLE Automation objects and install them on the SQL Server computer.
Note All of the above steps must be performed within a single Transact-SQL statement batch. All created OLE objects are automatically destroyed at the end of every statement batch.