1. Create a dataadapter and a dataset.
2. Use the dataadapter to fill the dataset with the contents of the table from SQL Server.
3. Use either the WriteXML(...) or WriteXMLSchema(...) method of the dataset to write a XML file.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.