Skip to Main Content Skip to Search
Product Documentation

isconnection - Detect whether database connections are valid

Syntax

a = isconnection(conn)

Description

a = isconnection(conn) returns 1 if the database connection conn is valid, or returns 0 otherwise.

Examples

Check if the database connection conn is valid.

a = isconnection(conn)
a =
     1

See Also

database | isreadonly | ping

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS