How can I connect to Access database?

I am running 64 bit version of windows 7 and 64 bit version of MATLAB 2011, what I need to do is connect to an Access 2010 Database, execute a SQL statement and export a table to Excel. How can this be done?
Thank you in advance.

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2011년 6월 20일

0 개 추천

댓글 수: 3

Daniel
Daniel 2011년 6월 20일
That is what I have tried to do, at first using the demo script which comes with the toolbox, this script gives me the following error:
??? Error using ==> database.ping at 153
Invalid connection.
Error in ==> dbimportdemo at 20
ping(connA)
This is after having set up the data source for ODBC drivers.
Kaustubha Govind
Kaustubha Govind 2011년 6월 20일
Have you examined connA.Message to see if there was an error making the connection?
Fangjun Jiang
Fangjun Jiang 2011년 6월 21일
Okay, I thought you didn't know the Database Toolbox. I don't have the same OS, MATLAB version and MS Office version as you have. Are you implying the problem is due to these new version of software? Did you have the same problem in previous versions? Gosh! I envy you having all these newest gadget.

댓글을 달려면 로그인하십시오.

카테고리

질문:

2011년 6월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by