Próbuję wprowadzić ten arkusz programu Excel do tabeli, aby można było zastosować do niego instrukcje select itp., Aby zaktualizować tabele informacjami.Pobierz arkusz programu Excel do tabel tymczasowych za pomocą skryptu
SELECT *
FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=C:\PB.xlsx',
'SELECT * FROM [Sheet1$]')
Im uruchomiony 64-bitowy komputer. Nie mam pojęcia, jaka to wersja programu Excel.
Błąd:
Msg 7399, Level 16, State 1, Line 1 The OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)" reported an error. The provider did not give any information about the error. Msg 7303, Level 16, State 1, Line 1 Cannot initialize the data source object of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)".
Kiedy zmieni się Excel 12,0;
OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)" returned message "Could not find installable ISAM.". Msg 7303, Level 16, State 1, Line 1 Cannot initialize the data source object of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)".
Kiedy dostałem te błędy, powiedziano mi, że to DBA, ponieważ sterownik ten musi być zainstalowany na serwerze. Czy jest zainstalowany na twoim? – Taryn
@bluefeet To jest obecnie mój laptop i nie zainstalowałem niczego dodatkowego, więc jeśli nie jest to w 2008 R2. potem Nie. – Doomsknight
Jakiś czas temu wystąpił błąd 7399 z powodu niekompatybilności sterowników ODBC 32/64 bitów. Próbowałem odczytać dane z arkusza programu Excel do 64 bitów programu SQL Server 2008 R2. Sterownik Microsoft-Jet.OleDB ma 32 bity. Niestety nie mogłem rozwiązać problemu i musiałem zainstalować 32-bitowy serwer do odczytu plików Excela. –