How to export Microsoft SQL Server data to XML using Visual Basic 6?
-
I want to export the SQL Server data into an XML format using Visual Basic 6. The XML file should be in a particular format so that an external software can import that data into their system
-
Answer:
Your other option is to bring the data into an ADODB.Recordset, create an MSXML2.DomDocument object, call .Load (and load in a template of the data format you need), use a SelectSingleNode() call to grab the parent element of the data rows, and then iterate through each record of the recordset, adding the appropriate IXMLDomNode to the parent element, with attributes or subnodes set to the data values....
Thayalan at Yahoo! Answers Visit the source
Other answers
If you are using SQL Server 2000 than it supports FOR XML clause. This will help you convert tabular data of SQL Server to XML format
ketur
Related Q & A:
- How Do I Configure SQL Server 2005 Backend?Best solution by Server Fault
- How to enable Microsoft Access Driver (*.mdb, *.accdb) in Microsoft Azure server?Best solution by Stack Overflow
- How to change column data's as a separate column wise format in a SQL Server?Best solution by stackoverflow.com
- How do I connect to SQL Server using C#?Best solution by Stack Overflow
- How do I output from one form to another in Visual Basic?Best solution by support.microsoft.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.