Writing xml file from MS SQL

R

Ros

I am using pymssql for storing data into MS SQL. (I am using pymssql
first time so dont know much about it)
I wish to write/create XML file from database.
There are few examples available for mysql but not much information
about pymssql and MS SQL.

I have worked with cElementTree with SAX and I guess it can parse data
in the most efficient manner if you compare it with other parsers. How
can I use cElementTree to write xml file with the combination of
pymssql(MS SQL) and pyxml.

If you know any links, examples then please post them.

Regards,
Ros
 
D

Diez B. Roggisch

Ros said:
I am using pymssql for storing data into MS SQL. (I am using pymssql
first time so dont know much about it)
I wish to write/create XML file from database.
There are few examples available for mysql but not much information
about pymssql and MS SQL.

I have worked with cElementTree with SAX and I guess it can parse data
in the most efficient manner if you compare it with other parsers. How
can I use cElementTree to write xml file with the combination of
pymssql(MS SQL) and pyxml.

1) read data from database
2) create XML-Nodes filled with this data
3) write XML-Nodes to disk
4) ....
5) Profit!

Diez
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top