Installierbares ISAM nicht gefunden

Ich habe den folgenden code :

string excelConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\db\suc.xls; Extended Properties=""Excel 12.0;HDR=YES;""";

//Create Connection to Excel Workbook
using (OleDbConnection connection =
             new OleDbConnection(excelConnectionString))
{
    OleDbCommand command = new OleDbCommand
            ("Select * FROM [Sheet1$]", connection);

    connection.Open();

und ich bekomme die folgende Fehlermeldung :

Installierbares ISAM nicht gefunden.

in connection.Open() . Irgendwelche Ideen ?

InformationsquelleAutor Alex | 2010-11-18
Schreibe einen Kommentar