The following query returns the database options and metadata:
select * from sys.databases WHERE name = 'MyDatabaseName';