Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
wile
Starting Member
3 Posts |
Posted - 2009-02-26 : 16:21:08
|
HelloI am trying to import an excel spread into a new sql2000 tbale using the following tsql code. I an also getting thr following error, can anyone help.ThanksJWselect * into Temp_scac_codes from OPENROWSET ('MICROSOFT.Jet.OLEDB.4.0','Excel 8.0;Database=d:\SOU_Combined_Haulers_From_GB.xls:HDR=YES','SELECT * from [Sheet1$]')The error is:Server: Msg 7399, Level 16, State 1, Line 1OLE DB provider 'MICROSOFT.Jet.OLEDB.4.0' reported an error. [OLE/DB provider returned message: The Microsoft Jet database engine could not find the object 'Sheet1$'. Make sure the object exists and that you spell its name and the path name correctly.]OLE DB error trace [OLE/DB Provider 'MICROSOFT.Jet.OLEDB.4.0' IColumnsInfo::GetColumnsInfo returned 0x80004005: ]. |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
wile
Starting Member
3 Posts |
Posted - 2009-02-26 : 16:53:18
|
Yes the "d:\SOU_Combined_Haulers_From_GB.xls" exist on the server, I ran the query on the serverJW |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|