Günther Schmidt wrote:
> I need to import data from Excel files into Dolphin, and I think this
> should be possible through an ODBC mechanism.
I'm not sure how reliable that is, there seem to be a number of problems and
caveats about the ODBC driver for Excel.
Anyway, one way to do it is via a DSN-less connection: Eg:
file := 'C:\Temp\TestData.xls'.
cs := 'DRIVER={Microsoft Excel Driver (*.xls)};DBQ=' , file.
conn := (DBConnection new)
connectString: cs;
open;
yourself.
You can then try:
conn query: 'SELECT * FROM [Sheet1$]'
Don't forget to:
conn close.
There are a number of options you can set in the connect-string, evaluate
conn connectString.
to see what the driver adds for you. Also see:
http://msdn.microsoft.com/library/en-us/odbc/htm/odbcjetmicrosoft_excel_driver_programming_considerations.aspfor more information. It's worth searching the MS knowledge base for
Microsoft Excel Driver
too.
-- chris