Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

getting xml data

 
   Database Help (Home) -> Programming RSS
Next:  HDR: Replicated index behaviour  
Author Message
Roy Goldhammer

External


Since: Aug 25, 2010
Posts: 1



(Msg. 1) Posted: Wed Aug 25, 2010 5:26 am
Post subject: getting xml data
Archived from groups: microsoft>public>sqlserver>programming (more info?)

Hello there

I have some store procedures who execute XML.

I would like to run them and store the XML in table, variable.

how can i do that?

 >> Stay informed about: getting xml data 
Back to top
Login to vote
SetonSoftware

External


Since: Dec 03, 2008
Posts: 17



(Msg. 2) Posted: Wed Aug 25, 2010 8:16 am
Post subject: Re: getting xml data [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Aug 25, 4:56 am, "Roy Goldhammer" wrote:
> Hello there
>
> I have some store procedures who execute XML.
>
> I would like to run them and store the XML in table, variable.
>
> how can i do that?

Roy

You could treat the Xml like any other data type and store it. For
example:

DECLARE @Data xml

SET @Data = (SELECT *
FROM SourceTable
WHERE ID = 101 FOR XML Auto, Type)

INSERT INTO TargetTable (MyXml) VALUES (@Data)

Hope this helps

Carl

 >> Stay informed about: getting xml data 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Save 60% on Data Entry, Data Conversion, Data Processing S.. - Get a Discount up to 60% on data entry, data capture, dataentry services, large volume data processing and data conversion services through offshore facilities in India. Offshore data entry also provides form data entry, data capture, HTML/SGML coding,..

Get data out of excel file stored as an image data type - Greetings, I have an excel file stored in a data base table as an image data type. I would like to somehow read the data from the excel file and extract its data into a data base table using t-sql. I've used sql statements such as the following but..

How to access data table within data set to add new row - I have an SQL database with one table in it. I want to load the table into a DataSet, add new records to the DataSet, then commit the changes back to the database. Using C#.NET, the following loads the DataSet and fills it: string..

how to update data based on data from a select query - From time to time I have to run queries to process some data. Sometime the query was not easy for me to create. To get things done I have to use stored procedures. It would be magic if someone can show me how to create a single query to perform the task....

Appending data after comparison against existing data - Hello: I currently have a query that compares the results of a bulk upload to data already loaded into a SQL Server table, tblCDR. Any data that does not currently exist in the table tblCDR is then appended into tblCDR. I am using DTS and Temp..
   Database Help (Home) -> Programming All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]