see the 'sp_OACREATE()' system stored procedure. this allows you to call COM api's.
There are also 2 techniques:
1. either you register it with COM(regsvr32)
2. or you install it in the SQL system tables and drop the dll in the SQL install folder /binn. Not sure of the SP to register it with SQL.