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

  


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