Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Problem with sp_OA methods

Author  Topic 

Ravikeerti
Starting Member

1 Post

Posted - 2006-01-18 : 07:50:24
Hi all,
I have problem with sp_OA methods in sql server 2000.

I am calling a COM component which creates XML file, from SQL stroed proc, but component is not getting executed neither i am getting any error.

Here is my code

DECLARE @FS int, @OLEResult int

EXECUTE @OLEResult = sp_OACreate 'XMLImport.XML', @FS OUT
IF @OLEResult <> 0 PRINT 'Successfull'

execute @OLEResult = sp_OAMethod @FS, 'CreateXML'
IF @OLEResult <> 0 PRINT 'Successfull'

EXECUTE @OLEResult = sp_OADestroy @FS

Any sols?

Regards
Ravikeerti
   

- Advertisement -