The sp_OA Procedures
Transact-SQL's Automation stored procedures are named using the convention sp_OAFunction, where Function indicates what the procedure does (e.g., sp_OACreate creates COM objects, sp_OAMethod calls a method, sp_OAGetProperty and sp_OASetProperty get and set object properties, respectively, and so on). Each of the sp_OA procs except sp_OACreate expects an integer parameter containing a pointer to the previously created object. The sp_OACreate procedure, of course, creates the object, and so it expects an integer variable to be passed in as an output parameter to receive the reference to the object it creates. This integer actually references an internal wrapper object created by ODSOLE to encapsulate the COM object. This internal ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access