If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Unable to retrieve the Xml Document from a XMLcolum using ADO.net

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-31-03, 19:36
satish_nath satish_nath is offline
Registered User
 
Join Date: Dec 2003
Posts: 6
Question Unable to retrieve the Xml Document from a XMLcolum using ADO.net

Hi Iam trying to retrieve the xml document stored in a XmL enabled Column of a DB2 8.1 PE. Iam using the ADO.net to retrieve the document.
db2SelectCommand.CommandText = "Select db2xml.Content(order,'c:\order.xml'from sales_tab where invoice_num = '123456' ";


It shows " unrecoginzed escape sequnece".

I can retrieve the document using the regular the statement " Select order from sales_tab where invoice_num = '123456'" but the problem is that the document does not have any XML structure. The ADO.net places the document as whole inside a data set with no structure.



Any insight into this problem would be appreciated!!!

Thanks A Lot!!!

Chenna
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On