Connect Matlab to an Interbase databaes

2 ビュー (過去 30 日間)
mark
mark 2012 年 2 月 29 日
コメント済み: Sebastian Legrand 2016 年 6 月 14 日
Has anyone connected Matlab to an Interbase database via ODBC or some other connection?

回答 (1 件)

Oleg Komarov
Oleg Komarov 2012 年 2 月 29 日
The Embarcadero developper's guide gives you directions on chapter 4 on how to establish a JDBC connection:
  • Install InterClient
  • Specify driver as 'driver = InterBase.interclient.Driver'
  • Specify the 'databaseurl = ...' according to your OS
Then use database ('databasename','username','password','driver','databaseurl') to establish the connection.
You might need to add the JAR driver location supplied with InterClient directly to classpath.txt. Insert the path to the database driver JAR file in the classpath.txt file. The classpath.txt file is located at:
$MATLABROOT\toolbox\local\classpath.txt
To check that you added it correctly use type javaclasspath in the command window.
  1 件のコメント
Sebastian Legrand
Sebastian Legrand 2016 年 6 月 14 日
Hello,
I try to connect to a sql database via interclient.jar. The file interclient.jar is listed in javaclasspath.
STATIC JAVA PATH
C:\CodeGear\InterBase\SDK\lib\interclient.jar
...
But if I enter this command:
driver = InterBase.interclient.Driver;
It takes an error like:
Undefined variable "InterBase" or function "InterBase.interclient.Driver".
Error in database_connection (line 6)
driver = InterBase.interclient.Driver;
My experience in databases are very bad. Can someone help me?
kind greets, Sebastian Legrand

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

カテゴリ

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