2011-03-15 13 views
1

を使用してアクセスDBへの接続 -は、私はそうのように、Visual Studioの2008年にジェットでのAccessデータベースに接続しようとしていますジェット

DBPROVIDER = "PROVIDER = Microsoft.Jet.OLEDB.4.0;"

その後から読み取られ、開口部に私のソースファイルを見つけ、それを閉じる -

con.Open() con.Close()

しかし、私は実行時にエラーメッセージが表示されます -

『Microsoft.Jet.OLEDB.4.0』プロバイダはローカルマシンに登録されていない」

私はWindows 7を実行しているよ、とMSJET40.DLLは、ウィンドウのSYSWOW64フォルダにあり。

アドバイスをいただければ幸いです。

答えて

3

おそらく、32ビットアプリケーションを64ビットドライバに接続しようとしているか、その逆です。だから、あなたはあなたのexeファイルのbit化を変更したり、対応するアクセス・ドライバをインストールするか必要があります。Microsoft Access Database Engine 2010 Redistributable

-3

ジェットを.. X64上でネイティブに動作しますが、SQL Serverがないのんのx64を取得するために〜

方法! Jetのバージョン? http://blogs.msdn.com/b/psssql/archive/2010/01/21/how-to-get-a-x64-version-of-jet.aspx

私たちは、Jet ODBCドライバ/ OLE DBプロバイダを64ビットとして入手する方法について多くの人に尋ねました。 Windowsでは、これらの32ビット版のみが出荷されます。その答えは、これらの項目が推奨されなくなるため、Windowsのバージョンはx64ではありません。推奨されないのは何を意味しますか?

Microsoft Jet Database Engine 4.0: Starting with version 2.6, MDAC no longer contains Jet components. In other words, MDAC 2.6, 2.7, 2.8, and all future MDAC/WDAC releases do not contain Microsoft Jet, the Microsoft Jet OLE DB Provider, the ODBC Desktop Database Drivers, or Jet Data Access Objects (DAO). The Microsoft Jet Database Engine 4.0 components entered a state of functional deprecation and sustained engineering, and have not received feature level enhancements since becoming a part of Microsoft Windows in Windows 2000. 


There is no 64-bit version of the Jet Database Engine, the Jet OLEDB Driver, the Jet ODBC Drivers, or Jet DAO available. This is also documented in KB article 957570. On 64-bit versions of Windows, 32-bit Jet runs under the Windows WOW64 subsystem. For more information on WOW64, see http://msdn.microsoft.com/en-us/library/aa384249(VS.85).aspx. Native 64-bit applications cannot communicate with the 32-bit Jet drivers running in WOW64. 


Instead of Microsoft Jet, Microsoft recommends using Microsoft SQL Server Express Edition or Microsoft SQL Server Compact Edition when developing new, non-Microsoft Access applications requiring a relational data store. These new or converted Jet applications can continue to use Jet with the intention of using Microsoft Office 2003 and earlier files (.mdb and .xls) for non-primary data storage. However, for these applications, you should plan to migrate from Jet to the 2007 Office System Driver. You can download the 2007 Office System Driver, which allows you to read from and write to pre-existing files in either Office 2003 (.mdb and .xls) or the Office 2007 (*.accdb, *.xlsm, *.xlsx and *.xlsb) file formats. IMPORTANT Please read the 2007 Office System End User License Agreement for specific usage limitations. 
+2

この答えはひどいと完全に時代遅れである:ここ

Deprecated MDAC/WDAC Components These components are still supported in the current release of MDAC/WDAC, but they might be removed in future releases. Microsoft recommends, when you develop new applications, that you avoid using these components. Additionally, when you upgrade or modify existing applications, remove any dependency on these components. 

そして、それはJetデータベースエンジンについて示しています何をされています。ここでは、MSDNのMDAC/WDACロードマップからの抜粋です。 64ビット環境でJetデータを処理する必要がある場合は、Jet 4の後継となる64ビット版のACEを使用できます。 –

関連する問題