how to configure multiple ODBC datasources without using Data Explorer

2 ビュー (過去 30 日間)
Dean Deng
Dean Deng 2017 年 7 月 13 日
コメント済み: Dean Deng 2017 年 7 月 19 日
I need to set up multiple access databases all at once and so wonder if I can set the datasources all at once using command line without using DataExplorer.
Thanks

回答 (1 件)

Amit Doshi
Amit Doshi 2017 年 7 月 17 日
Hello Dean,
You can create multiple connection objects for multiple databases using the command line.
For example:
conn1 = database('dbtoolboxdemo','admin','admin');
conn2 = database('dbtoolboxdatabase_2','admin','admin');
Refer the below link to know how to connect to Microsoft Access Using ODBC Driver and Command Line: https://www.mathworks.com/help/database/ug/microsoft-access-odbc-windows.html#bt8kis8-1
  1 件のコメント
Dean Deng
Dean Deng 2017 年 7 月 19 日
Actually what I am asking is how to configure and build up the datasource through the command line; not connecting to the datasource. I ended up using cmd command lines to set up the datasource with odbcconf. Hope that this might help others who are seeking similar answers.

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

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by