Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

isreadonly

Determine if 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)

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 =
     1

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

Related Examples

See Also

|

Introduced before R2006a

Was this topic helpful?