結果 : script to check database status in sql server