Documentation

Open and Close Database Connection

Establish connection to database; end connection to database

Database Toolbox™ lets you connect to various databases by installing the database and driver. If you do not want to install a database and driver, you can use the MATLAB® Interface to SQLite. For details, see Working with the MATLAB Interface to SQLite.

Functions

Database Connections

close Close database connection, SQLite connection, DatabaseDatastore, cursor, or resultset object
database Connect to database
isopen Determine if database connection or database cursor is open
isreadonly Determine if database connection is read only
logintimeout Set or get time allowed to establish database connection
ping Retrieve status information about database connection
set Set properties for database, cursor, or drivermanager object
setdbprefs Set preferences for retrieval format, errors, NULLs, and more

MATLAB Interface to SQLite Connection

close Close database connection, SQLite connection, DatabaseDatastore, cursor, or resultset object
sqlite Create SQLite connection

Apps

Database Explorer Configure, explore, and import database data
Was this topic helpful?