Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Executing a COM object from within a stored procedure
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00944718
Message ID:
00944766
Vues:
13
>Can anyone tell me if it is possible to execute a COM object from within a stored procedure and have it retrieve an XML response from the COM object.
>My problem:
>I have a COM object that accepts XML input and creates a sales order in a Fox Pro DB. I want to call this object from a stored procedure and update a record in SQL Server 2000.
>
>Any ideas would be greatly appreciated.
>Theo

Check out sp_OACreate, sp_OAMethod, sp_OAGet- and sp_OASetProperty, and OPENXML in the BOL. I have not done anything like this myself, but it looks like you can use sp_OAGetProperty to fetch the XML string, and OPENXML to shred it into variables.
Dan LeClair
www.cyberwombat.com
SET RANT ON - The Wombat Blog

Life isn’t a morality contest and purity makes a poor shield. - J. Peter Mulhern
Disclaimer: The comments made here are only my OPINIONS on various aspects of VFP, SQL Server, VS.NET, systems development, or life in general, and my OPINIONS should not be construed to be the authoritative word on any subject. No warranties or degrees of veracity are expressed or implied. Void where prohibited. Side effects may included dizziness, spontaneous combustion, or unexplainable cravings for dark beer. Wash with like colors only, serve immediately for best flavor.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform