フィルターのクリア

Sybas IQ Database Connection

3 ビュー (過去 30 日間)
Tareq Rahmani
Tareq Rahmani 2021 年 1 月 28 日
コメント済み: Amrtanshu Raj 2021 年 4 月 23 日
Hi all
How can I connect to Sybase IQ DB from Matlab script: i did the below :
vendor = "Sybase IQ";
opts = databaseConnectionOptions("jdbc",vendor);
opts = setoptions(opts,"DataSourceName","TeDIKWESE", "JDBCDriverLocation", "F:\jtds.jar", "DatabaseName","netview2_w19", "Server","172.29.44.4","PortNumber",29887 ) ; %%"AuthenticationType","Windows","loginTimeout","20","encrypt","false"
username = "";
password = "";
status = testConnection(opts,username,password);
saveAsDataSource(opts)
datasource = "TeDIKWESE";
username = "nethouse";
password = "AdsCommon__2016";
conn = database(datasource,username,password); %% *conn = database(databasename,username,password,driver,url)
selectquery = sprintf('tatata');
M2 = select(conn,selectquery); %%% M2 is a table
close(conn);
i got the below error :
Undefined function 'databaseConnectionOptions' for input arguments of type 'string'.
  1 件のコメント
Amrtanshu Raj
Amrtanshu Raj 2021 年 4 月 23 日
Hi,
What is you MATLAB version ?
databaseConnectionOptions has been introduced in 2020b.

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

回答 (0 件)

カテゴリ

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