aspose file tools
The moose likes JDBC and Relational Databases and the fly likes jdbc:odbc SQL2000 XML return? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "jdbc:odbc SQL2000 XML return?" Watch "jdbc:odbc SQL2000 XML return?" New topic

jdbc:odbc SQL2000 XML return?

Ryan Alexander

Joined: May 23, 2001
Posts: 8
Ok, here's a good meaty question, what I'd *like* to do is submit a query through to SQL2000 and use it's ability to spit out the data in XML format.

String query = "SELECT * from TestCams for XML AUTO";
Statement statement = m_connection.createStatement();
ResultSet resultSet = statement.executeQuery(query);
while (
Problem in this case is, I get a string of numeric characters in response, not the actual XML, I'm almost curious if it's some kind of integer representation of the ascii characters..
Has anyone successfully done this?
I agree. Here's the link:
subject: jdbc:odbc SQL2000 XML return?