This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.


(To be removed) Determine if database connection is read-only

isreadonly will be removed in a future release. Use the ReadOnly connection object property instead.


a = isreadonly(conn)


a = isreadonly(conn) returns 1 if the database connection conn is read-only. Otherwise, it returns 0.


Check whether conn is read-only.

a = isreadonly(conn)

For ODBC connections, you can use the native ODBC interface. For details, see database.

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

a =

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

Introduced before R2006a

Was this topic helpful?