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 > PC based Database Applications > Microsoft Excel > Retrieving CLOB data through excel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-24-07, 12:38
JWoodruff JWoodruff is offline
Registered User
 
Join Date: Jul 2007
Posts: 2
Exclamation Retrieving CLOB data through excel

Hello Everyone,

I am attempting to retrieve CLOB data from an Oracle database via a subroutine in excel.

I am using the Microsoft ODBC for Oracle driver to make the connection to the database.

When I attempt to return the CLOB (which is all text) I receive the following error:

"Run-time error '-2147467259(800004005)':
Automation error
Unspecified error"


How can I go about returning CLOB data from Oracle via my excel subroutine? I have a few different CLOB data fields to return to excel.

Thanks in advance!
Reply With Quote
  #2 (permalink)  
Old 07-30-07, 10:14
JWoodruff JWoodruff is offline
Registered User
 
Join Date: Jul 2007
Posts: 2
Unhappy A work around...

For anyone interested it looks like the apparent fix in this case will be to modify the CLOB field on the Oracle side. This particular field is simply a text field that is allowing >255 characters causing the CLOB. The solution is to limit the field <255 characters to return it to excel. I will be able to do so being that the field does not have a justification to be >255 characters. In the event that I need to return data that is CLOB data, this issue remains unresolved. Simply circumvented.
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On