MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB基础] 用Matlab連結SQLServer和JDBC (https://www.labfans.com/bbs/showthread.php?t=17924)

慕容雙 2012-12-04 20:03

用Matlab連結SQLServer和JDBC
 
>??? Undefined function or method 'database' for input arguments of type 'char'
>我已經去下載database函數庫丟進toolbox了,還是跑出這一條,
>用exist驗證database也都是顯示0
>連結的語法如下
>conn = database('DB','user','pwd', ...
>'com.microsoft.sqlserver.jdbc.SQLServerDriver', ...
>'jdbc:sqlserver://127.0.0.1:1433;databaseName=DB');
>請問要如何才能使用database這個函數呢?

之前的問題已爬文解決

database是可以用了,但是出現下列錯誤:

??? Undefined variable "com" or class
"com.mathworks.toolbox.database.databaseConnect".
Error in ==> database.database at 90
conn=com.mathworks.toolbox.database.databaseConnect(instance,UserName,Password,Driver,URL);

Error in ==> SQLServerTest at 15
conn=database(db,username,password, ...

請問怎麼解決呢?


所有时间均为北京时间。现在的时间是 12:28

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.