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 > Large Files

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-22-09, 05:00
ratheeshknair ratheeshknair is offline
Registered User
 
Join Date: Jan 2009
Posts: 153
Large Files

Hi Experts,

How can i stored large files in a table?

I am having more than 200 XSD & XLS files.

Please help

TIA
Reply With Quote
  #2 (permalink)  
Old 10-22-09, 13:29
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
You create the table with a column of type XML, CLOB, or BLOB (whatever suits you best) and then insert the data in this column.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 10-23-09, 06:06
ratheeshknair ratheeshknair is offline
Registered User
 
Join Date: Jan 2009
Posts: 153
Thanks Stolze,
How can i insert a file in a column?

Can you give me an example?

TIA
Reply With Quote
  #4 (permalink)  
Old 10-24-09, 13:01
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
You read the file into a variable in your program and then insert the variable in the table. Alternatively, if the file happens to reside on the database server, you can use a UDF as I did in this article for similar purposes to load images into a BLOB column: A DB2 UDB still image extender
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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