- Posts: 51
- Thank you received: 0
Excel 255 character truncation
12 years 7 months ago #1801
by George
Excel 255 character truncation was created by George
Mike
I am trying to load data from Excel file via ODBC.
However, it seems that cells with more than 255 characters in won't load.
How can I get around this? i.e. load cells with text longer than 255 characters.
On the link you originally sent me there is mention of a "Memo" field which allows more than 255 chars... can this be defined for Excel?
regards,
George
I am trying to load data from Excel file via ODBC.
However, it seems that cells with more than 255 characters in won't load.
How can I get around this? i.e. load cells with text longer than 255 characters.
On the link you originally sent me there is mention of a "Memo" field which allows more than 255 chars... can this be defined for Excel?
regards,
George
Please Log in or Create an account to join the conversation.
12 years 7 months ago #1802
by admin
Mike
ETL Architect
Replied by admin on topic Re: Excel 255 character truncation
Put some dummy data before the first row an make sure that length is more than 255 characters.
Why you are using odbc any way?
Mike
Why you are using odbc any way?
Mike
Mike
ETL Architect
Please Log in or Create an account to join the conversation.
12 years 7 months ago #1803
by George
Replied by George on topic Re: Excel 255 character truncation
Mike
I tried literally putting this record on rows 1 and 2 of the Excel sheet and it has worked, i.e. accepted definition as being more than 255 chars. In the Reader tab the "Show Definition" page indicates that size/precision is 1073741824 and datatype is blank (rather than 255 and VARCHAR as previously).
Can this be solved without having to create/copy dummy records?
I am using ODBS because I am running using SQL to join several Excel Sheets together
regards
George
I tried literally putting this record on rows 1 and 2 of the Excel sheet and it has worked, i.e. accepted definition as being more than 255 chars. In the Reader tab the "Show Definition" page indicates that size/precision is 1073741824 and datatype is blank (rather than 255 and VARCHAR as previously).
Can this be solved without having to create/copy dummy records?
I am using ODBS because I am running using SQL to join several Excel Sheets together
regards
George
Please Log in or Create an account to join the conversation.
12 years 7 months ago #1804
by admin
Mike
ETL Architect
Replied by admin on topic Re: Excel 255 character truncation
So far I was not able to find an alternative solution for it
Mike
Mike
Mike
ETL Architect
Please Log in or Create an account to join the conversation.
12 years 7 months ago #1805
by George
Replied by George on topic Re: Excel 255 character truncation
Mike
No that's fine, but I just need to know if you think there is a solution possible (even if unknown at the moment) or if this is a limitation of the MS ODBC driver and the only workaround is to edit the excel file.
Regards
George
No that's fine, but I just need to know if you think there is a solution possible (even if unknown at the moment) or if this is a limitation of the MS ODBC driver and the only workaround is to edit the excel file.
Regards
George
Please Log in or Create an account to join the conversation.
12 years 7 months ago #1807
by admin
Mike
ETL Architect
Replied by admin on topic Re: Excel 255 character truncation
The sad story even if you use "fantastic tools" designed by Microsoft eg DTS or SSIS it is still does not work.
Only alternative is to use delimited files with them
My suggestion do not use ODBC or Jet to load data from Excel use standard excel data reader from Advanced ETL Processor
It works correctly with excel files all the time.
Once data from Excel is loaded into the database you can do all your SQL manipulations
Mike
Only alternative is to use delimited files with them
My suggestion do not use ODBC or Jet to load data from Excel use standard excel data reader from Advanced ETL Processor
It works correctly with excel files all the time.
Once data from Excel is loaded into the database you can do all your SQL manipulations
Mike
Mike
ETL Architect
Please Log in or Create an account to join the conversation.