SELECT DATABASEPROPERTY('mydb', 'IsReadOnly') : DATABASEPROPERTY « System Functions « SQL Server / T-SQL Tutorial






4> SELECT DATABASEPROPERTY('mydb', 'IsReadOnly')
5> GO

-----------
       NULL

(1 rows affected)








25.5.DATABASEPROPERTY
25.5.1.SELECT DATABASEPROPERTY('mydb', 'IsReadOnly')