Database Toolbox Previous page   Next Page
ping

Get status information about database connection

Syntax

Description

ping(conn) returns the status information about the database connection, conn. If the connection is open, ping returns status information and otherwise it returns an error message.

Examples

Example 1--Get Status Information About ODBC Connection

Type

where conn is a valid ODBC connection. MATLAB returns

Example 2--Get Status Information About JDBC Connection

Type

where conn is a valid JDBC connection.

MATLAB returns

Example 3--Unsuccessful Request for Information About Connection

Type

where the database connection conn has been terminated or was not successful. MATLAB returns

See Also
database, dmd, get, isconnection, set, supports


Previous page  namecolumn primarykeys Next page

© 1994-2005 The MathWorks, Inc.