image thumbnail

database connection mfiles

version 1.0.0.0 (13.2 KB) by Tim Myers
Queries datasource directly w/o requiring mods to ODBC Data Source Administrator.

9.6K Downloads

Updated 23 Mar 2007

View License

Complete package for connecting to, querying, and closing connections to SQL, Oracle, and MS Access databases.

The main advantage of these functions is that they implement a "DSN-less" connection, which means you can run queries against a server without having to first add the datasource to your ODBC Data Source Administrator.

Just input the server name, database name, and optional uid/pwd to open a connection using an ActiveX control.

It takes only 4 lines of code to open a connection, run a query, and close the connection. It's that simple!

Cite As

Tim Myers (2021). database connection mfiles (https://www.mathworks.com/matlabcentral/fileexchange/8385-database-connection-mfiles), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: ADO OLE Database Connection, adodb_tools

Community Treasure Hunt

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

Start Hunting!