Skip to content
Prev 176512 / 398503 Next

Re ading Excel 5.0 files with RODBC?

Seems like the place where i get those files from has an error somewhere when
they create the file which doesn't allow ODBC to see sheet with data, i.e
sqlTables returns:
[1] TABLE_CAT   TABLE_SCHEM TABLE_NAME  TABLE_TYPE  REMARKS    
<0 rows> (or 0-length row.names)

When i open this file in excel 2003 and try to save it, i get a message that
this file is of Excel 5.0 format (but the original file has more than 16k
rows which is impossible with excel 5.0 format) and information wil be lost.
When i save it on my pc either in excel 5.0 or excel 97 format i can open it
with RODBC with no problems so the problem has to be with the way original
xls files are created.
Thanks a lot for all replies.
Prof Brian Ripley wrote: