| Author |
Topic |
|
CSK
Constraint Violating Yak Guru
489 Posts |
Posted - 2006-05-26 : 02:15:17
|
| Dear AllI Need to acces the Excel Sheet through ISQLWI Used the Following Codesp_addlinkedserver N'KKExcel', N'Jet 4.0', N'Microsoft.Jet.OLEDB.4.0', N'c:\Sheet.xls', NULL, N'Excel 5.0'GOsp_addlinkedsrvlogin N'KKExcel', false, sa, N'ADMIN', NULLGOSELECT *FROM EXCEL...SheetGOBut It returns The Follwoing ErrorServer: Msg 7314, Level 16, State 1, Line 2OLE DB provider 'EXCEL' does not contain table 'Sheet1'. The table either does not exist or the current user does not have permissions on that table.OLE DB error trace [Non-interface error: OLE DB provider does not contain the table: ProviderName='EXCEL', TableName='Sheet1'].Any One Please Help Me ThanksKK |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
CSK
Constraint Violating Yak Guru
489 Posts |
Posted - 2006-05-26 : 05:38:24
|
| Sheet Name Sheet1I didn't renameThanksKK |
 |
|
|
CSK
Constraint Violating Yak Guru
489 Posts |
Posted - 2006-05-26 : 05:39:02
|
| Sheet Name Sheet1I didn't renameThanksKK |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-05-26 : 05:55:33
|
| Then trySELECT *FROM EXCEL...Sheet1$MadhivananFailing to plan is Planning to fail |
 |
|
|
CSK
Constraint Violating Yak Guru
489 Posts |
Posted - 2006-05-26 : 06:00:07
|
| I am using Testing.xlsthe sheet name is sheet1the column name is colaBut when I executing the query SELECT * FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=D:\testing.xls;HDR=YES', 'SELECT * FROM EXCEL...sheet1')I am getting the following errorServer: Msg 7399, Level 16, State 1, Line 1OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error. The provider did not give any information about the error.OLE DB error trace [OLE/DB Provider 'Microsoft.Jet.OLEDB.4.0' IDBInitialize::Initialize returned 0x80004005: The provider did not give any information about the error.].ThanksKK |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-05-26 : 06:06:50
|
| Read my previous reply. The sheet name should be suffixed by $Use sheet1$MadhivananFailing to plan is Planning to fail |
 |
|
|
CSK
Constraint Violating Yak Guru
489 Posts |
Posted - 2006-05-26 : 06:10:57
|
| The same Error was thrownThanksKK |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-05-26 : 06:26:54
|
| Did you try this?SELECT *FROM EXCEL...[Sheet1$]MadhivananFailing to plan is Planning to fail |
 |
|
|
CSK
Constraint Violating Yak Guru
489 Posts |
Posted - 2006-05-26 : 06:29:09
|
| ur mean that using sp_addlinkedserver or the same query suggested by u..?ThanksKK |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-05-26 : 06:44:22
|
| Try bothMadhivananFailing to plan is Planning to fail |
 |
|
|
CSK
Constraint Violating Yak Guru
489 Posts |
Posted - 2006-05-26 : 06:49:37
|
| Yes! I have done waht sql said.!But i can'tNow i am doing the work through IMPORT/EXPORT WIZARD????????? |
 |
|
|
|