Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Open and Close Database Connection

Establish and end connection to relational databases

Database Toolbox™ enables you to connect to various relational 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.

Using Objects

connectionRelational database connection

Functions

closeClose and invalidate database and driver resource utilizer
databaseConnect to database
isopenDetermine if database connection or database cursor is open
isreadonly(To be removed) Determine if database connection is read-only
logintimeout(To be removed) Set or get time allowed to establish database connection
ping(To be removed) Retrieve status information about database connection
set(To be removed) Set properties for database or cursor object
setdbprefsSet preferences for retrieval format, errors, NULLs, and more
closeClose and invalidate database and driver resource utilizer
sqliteSQLite connection

Apps

Database ExplorerConfigure, explore, and import database data

Topics

Database Explorer App Workflow

Configuring Driver and Data Source

Install drivers and configure data sources for your database environment.

Connecting to Database

After configuring a driver and data source, connect to your database.

Programmatic Workflow

Connecting to Database

After configuring a driver and data source, connect to your database.

Connecting to Database Using Native ODBC Interface

Learn about the native ODBC interface and how it compares to other database connection types.

Working with MATLAB Interface to SQLite

Analyze data without access to a database or driver by using the MATLAB interface to SQLite.

Related Information

Was this topic helpful?