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.

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 20 de Jun. de 2011

0 votos

3 comentarios

Daniel
Daniel el 20 de Jun. de 2011
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 el 20 de Jun. de 2011
Have you examined connA.Message to see if there was an error making the connection?
Fangjun Jiang
Fangjun Jiang el 21 de Jun. de 2011
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.

Iniciar sesión para comentar.

Preguntada:

el 20 de Jun. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by