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

Export - best way to export XML in an XML field to a file ..

 
   Database Help (Home) -> XML RSS
Next:  SQL Timestamp field for Access use  
Author Message
M Bourgon

External


Since: Jan 22, 2008
Posts: 22



(Msg. 1) Posted: Wed Dec 31, 2008 2:45 pm
Post subject: Export - best way to export XML in an XML field to a file or set of
Archived from groups: microsoft>public>sqlserver>xml (more info?)

I'm trying to figure out the best way to automatically export two
fields to a file from a table. The first is a bigint column (the ID
field for that row), the second is datatype XML, containing XML data.
The goal is to save the data out from the table, delete the contents
from the table, but with the ability to readd it later if needed.

Any help greatly appreciated.
M

 >> Stay informed about: Export - best way to export XML in an XML field to a file .. 
Back to top
Login to vote
Helmut Woess

External


Since: Mar 06, 2008
Posts: 21



(Msg. 2) Posted: Sat Jan 03, 2009 5:11 pm
Post subject: Re: Export - best way to export XML in an XML field to a file or set of files? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Am Wed, 31 Dec 2008 14:45:07 -0800 (PST) schrieb M Bourgon:

> I'm trying to figure out the best way to automatically export two
> fields to a file from a table. The first is a bigint column (the ID
> field for that row), the second is datatype XML, containing XML data.
> The goal is to save the data out from the table, delete the contents
> from the table, but with the ability to readd it later if needed.
>
> Any help greatly appreciated.
> M

You can do this with BCP. Just g**gle for "bcp write xml" or
"bcp read xml column" and you will find a lot of examples.

bye,
Helmut

 >> Stay informed about: Export - best way to export XML in an XML field to a file .. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
export to file - I'm using sql 2000. I have an .asp page (not .net but could be) and I want the user to be able to create an xml file on their local machine from a very simple 5 column query which I am returning from a stored procedure. I've tried using the for .xm...

Export XML to SQL 2K database - hello everyone- I am fairly new to XML and understand SQL to XML transactions. However, I am now faced with a mindnumbing problem. I've read and researched endlessly, but can find nothing succint- no "here's where to start..." My company i...

how to export view to display - xml with specific xsd? - I am converting an old access system to SQL Server 2005. In the previous system the users could click 'Export to xml' and the system prompted them for where to save the file. Then the developer wrote too much code to write the data out to an xml..

field values as element name - I am using SQL Server 2000 and need to generate an XML file from a database table. Basically I need to generate an XML file from two fields in a table called MyTable. I don't need to include all fields from this table. One field is ContentDescriptio...

Null Field Values not returned - For XML AUTO - Is there a way to get SQL to return NULL field values as 'empty' XML tags, instead of completely omitting them from the output? I'm using FOR XML AUTO
   Database Help (Home) -> XML 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 ]