I am looking for a replacement for sp_dboption for determining if a database is READONLY.
Previously, sp_dboption '<database>', 'read only' would return an ON / OFF status.
All the material that I have found so far talks about using ALTER DATABASE to actually change settings. I don't want to change the database setting - I just want to find out what that setting currently is.
Any assistance is greatly appreciated!
Previously, sp_dboption '<database>', 'read only' would return an ON / OFF status.
All the material that I have found so far talks about using ALTER DATABASE to actually change settings. I don't want to change the database setting - I just want to find out what that setting currently is.
Any assistance is greatly appreciated!