Skip to Main Content Skip to Search
Product Documentation

isreadonly - Detect whether database connection is read only

Syntax

a = isreadonly(conn)

Description

a = isreadonly(conn) returns 1 if the database connection conn is read only. It returns 0 otherwise.

Examples

Check whether conn is read only.

a = isreadonly(conn)

The result indicates that the database connection conn is read only:

a =
     1

Therefore, you cannot run fastinsert, insert, or update functions on this database.

See Also

database | isconnection

  


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