I need to know how to interrogate a Microsoft SQL Server, to see if a given database has been set to Read-Only or not.
Read-Only
Is that possible, using T-SQL?