Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
X002548
Not Just a Number
15586 Posts |
|
krishnarajeesh
Yak Posting Veteran
67 Posts |
Posted - 2008-08-05 : 14:25:46
|
Hi,This should work, change code accordingly.Select name as DBNAME, case when (DATABASEPROPERTYEX(name,'status'))='suspect' then 'suspect' else status end as statusfrom sysdatabasesThanks,Krishnawww.SQLServer.in |
 |
|
X002548
Not Just a Number
15586 Posts |
|
|
|
|