错误[im006] [microsoft] [odbc驱动程序管理器]驱动程序的SQLsetconectionattr失败

时间:2018-04-05 13:23:07

标签: asp.net ms-access

我收到以下错误:它在我的某个开发服务器上工作正常,但在远程prod服务器上失败

 string msAccessConnectionString = @"Driver={Microsoft Access Driver (*.mdb)};DBQ=" + fileName;

        try
        {
            using (OdbcConnection sourceConnection = new OdbcConnection(msAccessConnectionString))
            using (sqlConnection)
            {
                sourceConnection.Open();

                 // code to update the table or retrieve the table

             } 
           }catch (Exception ex)
        {
            sb.AppendLine("ERROR --- ERROR --- ERROR --- ERROR --- ERROR ---");
            sb.AppendLine(ex.Message.ToString());

        }

0 个答案:

没有答案