ok, I get this help from Books on line:
SELECT *
FROM OpenDataSource( 'Microsoft.Jet.OLEDB.4.0',
'Data Source="c:\Finance\account.xls";User ID=Admin;Password=;Extended properties=Excel 5.0')...xactions
so I do the same, but I ignore what means the "...xactions" part. I guess this is the spreadShet name in the file, where I have the data desired, so I wrote:
SELECT *
FROM OpenDataSource( 'Microsoft.Jet.OLEDB.4.0',
'Data Source="c:\Finance\test.xls";User ID=;Password=;Extended properties=Excel 5.0')...july
I've have office 2003 ( maybe this is the reason ), my xls file is named "test", and inside I have a Sheet named "july". No ID and No Password.
I use SQL SERVER 2000 Developer edition
The error I get is:
Server: Msg 7314, Level 16, State 1, Line 1
OLE DB provider 'Microsoft.Jet.OLEDB.4.0' does not contain table 'july'.
The table either does not exist or the current user does not have permissions on
that table.
Thans a lot
CMN