Save SQL data in xml and retrieve back

ADH

Member
Joined
Apr 17, 2005
Messages
22
Location
ISRAEL
Programming Experience
10+
What is the eayest and shortest way to save an SQL SELECT output in to a local XML file and retrieve it back as table rows by another program ?
Thanks, adh
 
VB.NET:
dim m as new dataset
m.readxml(server.mappath("mh.xml"))
datagrid.datasource = m
datagrid.databind
write to xml from sql connection
VB.NET:
dim da as new sqldataadapter
dim mm as new dataset
da.fill(mm);
da.writexml(server.mappath("ohyea.xml"))
as easy as piece of cake
 
Back
Top