結果 : query to check status of database in sql server