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 > How to convert BLOB data to LONG VARCHAR

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-31-05, 02:01
sridharaswamy sridharaswamy is offline
Registered User
 
Join Date: Sep 2004
Posts: 6
How to convert BLOB data to LONG VARCHAR

I have a blob column in a table, due to which I am not able to updrage from DB2 7.x to 8.x. The bug is "[IBM][CLI Driver] CLI0112E Error in assignment".

Please refer http://www-1.ibm.com/support/docview...id=swg1IY43456

Now, I woluld like to change the column data type from blob to long varchar.

My problem is how to convert the existing blob data into long varchar, the data stored in blob was only text.
Reply With Quote
  #2 (permalink)  
Old 01-31-05, 12:45
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
long varchar

if this is an odbc source you can add this to db2cli.ini in \sqllib
LONGDATACOMPAT=1
This will convert data to long varchar..
Best Regards, Guy Przytula
__________________
Best Regards, Guy Przytula
DB2/ORA/SQL Services
DB2 DBA & Advanced DBA Certified
DB2 Dprop Certified
http://users.skynet.be/przytula/dbss.html
Reply With Quote
  #3 (permalink)  
Old 02-01-05, 04:14
sridharaswamy sridharaswamy is offline
Registered User
 
Join Date: Sep 2004
Posts: 6
Oops, I would like to do this using sql script only.
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