How to import the data from MS Acess database?

6 ビュー (過去 30 日間)
Charles Kim
Charles Kim 2018 年 10 月 31 日
回答済み: Charles Kim 2018 年 11 月 5 日
After the launch, the directory is set at C:\Apps\MATLAB\R2016a\toolbox\database\dbdemos. At the command prompt,
> connA=database('SampleDB','','') > connA.Message [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
I followed the example, but cannot find any file that has SampleDB. I do not know how to fix the error. Eventually I hope to import the data from any database I created using MS Acess 2013. Please help.
  1 件のコメント
Ran Chen
Ran Chen 2018 年 11 月 5 日
編集済み: Ran Chen 2018 年 11 月 5 日
Hello,
To look into the issue I need more information:
What is the bitness of MATLAB and MS Access?
Did you successfully connect to the database via 'Database Explore'?

サインインしてコメントする。

採用された回答

Charles Kim
Charles Kim 2018 年 11 月 5 日
Thanks for the advice.

その他の回答 (2 件)

Charles Kim
Charles Kim 2018 年 11 月 5 日
Matlab is x64 and MS Office 2013 Access is x32.

Ran Chen
Ran Chen 2018 年 11 月 5 日
To connect to 32-bit Microsoft Access Database from 64-bit MATLAB, please take the following steps in the attached link:
https://www.mathworks.com/matlabcentral/answers/235949-how-to-connect-to-32-bit-microsoft-access-database-from-64-bit-matlab

カテゴリ

Help Center および File ExchangeDatabase Toolbox についてさらに検索

製品


リリース

R2016a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by