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 |
philkos
Starting Member
5 Posts |
Posted - 2006-11-07 : 08:23:42
|
I having an excel file called TEST.XLS (in c:\ drive) which has 3 columns (c0,c1,c2) & 8 rows c0 c1 c21 a A2 b B3 c C4 d D5 e E6 f F7 g G8 h HIn sql server i have one table called TEST which has three columnsc0 char(10)c1 char(10)c2 char(10)when i runnig the following query select * into TEST from openrowset('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=C:\TEST.xls;HDR=YES', 'select * from [Sheet1$]')i am getting error like thisServer: 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: ].Version : Sql server 2000 & Excel 2002 Anybody having any idea why this error occuring?thanks in advance...Philkos |
|
Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)
7020 Posts |
Posted - 2006-11-07 : 08:38:21
|
The script Library is for posting working scripts, not for questions.You should post your question on the Developer Forum.CODO ERGO SUM |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-11-16 : 03:39:04
|
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49926&whichpage=10MadhivananFailing to plan is Planning to fail |
|
|
|
|
|