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 > XML on db2 9

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-16-06, 11:31
xzander xzander is offline
Registered User
 
Join Date: Sep 2006
Posts: 6
XML on db2 9

guys pls help me out here i wanna know can i put xml file as a whole into db2 9 and then retrieve data or manipulate or access it via the database ,....
thank u...
Reply With Quote
  #2 (permalink)  
Old 09-17-06, 08:44
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
xml

Yes, you can. db2 V9 has complete support for xml data type
see developersworks fro many articles/tutorials about xml select/updates...
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 09-17-06, 14:24
xzander xzander is offline
Registered User
 
Join Date: Sep 2006
Posts: 6
hey dude i tried the import command but its still does not get the data in my xml file into the database ......
Reply With Quote
  #4 (permalink)  
Old 09-18-06, 02:54
xzander xzander is offline
Registered User
 
Join Date: Sep 2006
Posts: 6
Quote:
Originally Posted by przytula_guy
Yes, you can. db2 V9 has complete support for xml data type
see developersworks fro many articles/tutorials about xml select/updates...
shuld i be using the xml extender
Reply With Quote
  #5 (permalink)  
Old 09-18-06, 09:00
GertK GertK is offline
Registered User
 
Join Date: Nov 2003
Location: Netherlands
Posts: 96
No, you can import it directly, you can read it in the docs.

Kind regards, Gert
Reply With Quote
  #6 (permalink)  
Old 09-22-06, 05:51
xzander xzander is offline
Registered User
 
Join Date: Sep 2006
Posts: 6
it does not work

dude i want to import the xml file directly .... in that method we have to first export it and then import it.....i want to import the xml file directly in my table.....can only exported data be imported.....

Last edited by xzander; 09-22-06 at 05:57.
Reply With Quote
  #7 (permalink)  
Old 09-22-06, 06:40
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
import

in the delimited input file for the xml column you specify the file name
11,"xxxxx","xml filename"
db2 import from delfile of del modified by lobsinfile insert into...
this will bring in the external file
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #8 (permalink)  
Old 09-22-06, 07:15
xzander xzander is offline
Registered User
 
Join Date: Sep 2006
Posts: 6
thank u maan this works .... but this is not at all application friendly.....
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