Yup, you are right. Checking a SUSPECT database here the only STATUS flag set is 1073741824 - which BOL says is "cleanly shutdown", so you could trySELECT nameFROM master.dbo.sysdatabasesWHERE (status & (32 + 64 + 128 + 256 + 1073741824)) <> 0ORDER BY name
which seems to work OK here.To get a list of all BITs used (in case there are some others applying to your circumstances) you could try:SELECT status, (status & 1), (status & 2), (status & 4), (status & 16), (status & 64), (status & 128), (status & 256), (status & 512), (status & 1024), (status & 2048), (status & 4096), (status & 8192), (status & 16384), (status & 32768), (status & 65536), (status & 131072), (status & 262144), (status & 524288), (status & 1048576), (status & 2097152), (status & 4194304), (status & 8388608), (status & 16777216), (status & 33554432), (status & 67108864), (status & 134217728), (status & 268435456), (status & 536870912), (status & 1073741824), nameFROM master.dbo.sysdatabasesORDER BY name
Kristen