| Database Toolbox | ![]() |
Detect if database connection is read-only
Syntax
a = isreadonly(conn)
Description
a = isreadonly(conn)
returns 1 if the database connection conn is read only, or returns 0 otherwise, where conn was created using database.
Examples
a = isreadonly(conn)
a =
1
indicating that the database connection conn is read only. Therefore, you cannot perform insert or update functions for this database.
See Also
database, isconnection
| isnullcolumn | isurl | ![]() |