Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I use a COM object from a SQL SP 1

Status
Not open for further replies.

cmdematos

IS-IT--Management
Mar 7, 2001
29
US
- Without writing and XP -

Can I attach (invoke?) a COM object from a stored procedure?

If so, how do I then set properties, fire methods and read properties back?

Carlos De Matos
 
Use the system stored procedures :
sp_OACreate to create the object

Call sp_OAGetProperty to get the value of a property.
Call sp_OASetProperty to set the value of a property.
Call sp_OAMethod to call a method.
Call sp_OAGetErrorInfo to get the most recent error information.

hope this helps,

Chris Dukes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top