Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to comp.lang.java.databases,microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Reading long strings (with jdbc) from Excel

Hi,

I'm not sure whether this is a jdbc/java problem or an excel problem.
I use RmiJdbc to read from an Excel file as a database. In one of the
columns I have "long" strings (over 255 characters). When I try to
read them through JDBC I only get the first 255 (or 256) characters.

I use result.getString("Description"). But have also tried
result.getCharacterStream("Description") and reading the string from
the stream. In either case, I don't get the entire string.

Thanks,


Aaron Fude
  #2   Report Post  
Posted to comp.lang.java.databases,microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Reading long strings (with jdbc) from Excel


you'll probably need to set IMEX=1 in the extended properties of the
jet connection string..

see Dick Kusleika's blog for more on the subject of mixed datatypes.
http://www.dicks-blog.com/excel/2004...al_data_m.html





--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Aaron Fude wrote :

Hi,

I'm not sure whether this is a jdbc/java problem or an excel problem.
I use RmiJdbc to read from an Excel file as a database. In one of the
columns I have "long" strings (over 255 characters). When I try to
read them through JDBC I only get the first 255 (or 256) characters.

I use result.getString("Description"). But have also tried
result.getCharacterStream("Description") and reading the string from
the stream. In either case, I don't get the entire string.

Thanks,


Aaron Fude

  #3   Report Post  
Posted to comp.lang.java.databases,microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Reading long strings (with jdbc) from Excel

I haven't tried this yet, but from your answer I'm guessing that it is
an Excel issue rather than jdbc. Just out of curiosity, in my sql
code, why can't I simply say result.getMemo()?

Also, from the post it is not clear what IMEX is. Is it a registry key
in the same section as the other discussed keys?

Thanks,


Aaron Fude
  #4   Report Post  
Posted to comp.lang.java.databases,microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Reading long strings (with jdbc) from Excel


IMEX is an (extended) property of the connection object.
read the page i referred to for a discussion of it's implications


--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Aaron Fude wrote :

I haven't tried this yet, but from your answer I'm guessing that it is
an Excel issue rather than jdbc. Just out of curiosity, in my sql
code, why can't I simply say result.getMemo()?

Also, from the post it is not clear what IMEX is. Is it a registry key
in the same section as the other discussed keys?

Thanks,


Aaron Fude

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wildcard MATCH() breaks on long (?) strings [email protected] Excel Worksheet Functions 6 May 6th 05 02:11 AM
Filter long Text strings Cimorene Excel Worksheet Functions 0 December 1st 04 04:01 AM
Best structure to store a long list of strings? Lazer[_15_] Excel Programming 0 October 28th 04 06:57 PM
Best structure to store a long list of strings? Lazer[_14_] Excel Programming 2 October 28th 04 04:40 PM
Enhancing performance of excel jdbc: odbc driver Mohan[_3_] Excel Programming 0 December 2nd 03 12:44 PM


All times are GMT +1. The time now is 10:15 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"