This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes ResultSet containing XML from SQL server 2000 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "ResultSet containing XML from SQL server 2000" Watch "ResultSet containing XML from SQL server 2000" New topic
Author

ResultSet containing XML from SQL server 2000

Drepe Trooper
Greenhorn

Joined: Jun 06, 2001
Posts: 5
I am trying JDBC to work with SQL Server 2000. I have a resultset object from the following statement which outputs an XML string(as clearly seen on the query analyzer).
SELECT TOP 2 id FROM table WHERE (c_id = '32') FOR xml auto
When I use the ResultSet using getString(1), I get a stream of characters(probably encoded bytes). How do I convert this stream to a readable string?
Thanks,
Drepe
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ResultSet containing XML from SQL server 2000
 
Similar Threads
Help needed on SQL Server Error
WSAD 5.1.2 and MS SQL Server Express 2005
Any Idea about free Driver for MS SQL SERVER 2000
Scrollable ResultSet
Interbase - java.lang.verifyError