java, sql and xml?

  • Hello all,

    Can I ask a question? Our system is written to run in JDK1.2.2, Tomcat and Internet Information Server 5.0 and connects to Microsoft SQL Server 7.0 via JDBC. Is there an easy way to run a SQL query and receive results in the form of XML?

  • There is a web add on for SQL7 that provides some xml ability, been quite a while since I looked at it! I think it was in the form of an ISAPI add in, so it might help.

    Andy

  • I think there might be another way to convert the data into xml (although it is a bit unconventional. If the records are hierarchical you can use the shaped recordset provider to maintain the parent child relationship, if not, just query as normal. Once you have the recordset populated, you can persist it into xml. Check out my article at:

    http://www.sqlservercentral.com/columnists/jwiner/shapexml.asp It should tell you exactly how to do it. Hope that helps.

  • What a great article, jwiner. The new ADO can now produce XML. Unfortunately, we use Java.

  • You will have to use the add on or build th xml in Java.

    Steve Jones

    steve@dkranch.net

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply