Connection to an Access database

조회 수: 3 (최근 30일)
Dinh Xuan TRAN
Dinh Xuan TRAN 2015년 7월 27일
댓글: Guillaume 2015년 7월 27일
Hi all, I wish to access a query (named QRY1) defined in an Access Database (named "DB"), saved locally in my computer. Let's set the path equal to : Path1 = C:\Folder1\Folder2\DB.mdb I found out about the conn = database(instance,username,password) function. Can anyone help me about the matlab command to do so ? What to write as "instance" ? For information, no password required to open the database. Thanks

답변 (1개)

Guillaume
Guillaume 2015년 7월 27일
편집: Guillaume 2015년 7월 27일
Follow the instructions in the documentation to set up your database connection. Once you've set up your odbc connection you open the database with
conn = database.ODBCConnection(nameofconnectionyousetup, '', '')
  댓글 수: 2
Dinh Xuan TRAN
Dinh Xuan TRAN 2015년 7월 27일
Thks Guillaume. How to set up the odbc connection ?
Guillaume
Guillaume 2015년 7월 27일
As I said, follow the instructions. If something is not clear in the instructions, then say what it is specifically.

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

카테고리

Help CenterFile Exchange에서 Database Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by