adodb class

版本 1.0.0.0 (5.4 KB) 作者: Zhiqiang Zhang
adodb is a class to query database using ADODB
1.1K 次下载
更新时间 2010/10/9

查看许可证

adodb is a class to query database using ADODB

The main method of adodb is adodb.query
[res, isSuccess] = adodb.query(sql, ado_connection_string), query the
database which is specified by ado_connection_string.

ado_connection_string could be a connection string, or just provide
following information in 5*1 cells or a struct
type: connection type - currently supported: 'Access','SQL','Oracle'
server: name of server - not required for Access connection
databasename: name of database - not required for Oracle connection
user, user id to login - added to connection string if provided
password: password to login - added to connection string if provided

adodb.queryvar is an alternative of query when you only need the first
result.

usage examples

ado = adodb;
res = ado.query('select * from sys', ...
'Provider=OraOLEDB.Oracle;Data Source=MyOracleDB;User Id=myUsername;Password=myPassword;');
res = ado.query(sql, {database_type, server_name_or_ip, ...
database_name, user, password});

See also: adodb/query, adodb/queryvar, adodb/connstr

Copyright: zhang@zhiqiang.org, 2010
http://zhiqiang.org/blog/it/use-adodb-in-matlab.html

引用格式

Zhiqiang Zhang (2024). adodb class (https://www.mathworks.com/matlabcentral/fileexchange/28983-adodb-class), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Database Toolbox 的更多信息
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0