Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need to retrieve XML into variable.
Message
De
28/09/2003 08:12:02
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Titre:
Need to retrieve XML into variable.
Divers
Thread ID:
00832993
Message ID:
00832993
Vues:
46
I need to create a stored procedure where a SQL statement retrieves data into a variable.

MYStoredProc
(
)
AS
1. Create Var myXML
2. myXML = SQL Statement From JOINS in MyDatabase.MyTables FOR XML....
3. Insert INTO MyDifferentDatabase.MyTransferTable (myIntendedField) VALUES (myXML)

How do I capture the result of the SQL into a variable? Better yet if I can perform 2 and 3 at once how do I do that?

Sample Code Please. Thanks.
Terry Rooks
Software Systems Architect
Microsoft Certified Solution Developer.Net

If at first you don't succeed, then skydiving definitely isn't for you.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform