Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to retrieve XML into variable.
Message
From
28/09/2003 08:12:02
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Title:
Need to retrieve XML into variable.
Miscellaneous
Thread ID:
00832993
Message ID:
00832993
Views:
44
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.
Next
Reply
Map
View

Click here to load this message in the networking platform