Quantcast
Channel: Answers for "mounted database status query"
Viewing all articles
Browse latest Browse all 4

Answer by Henrik Staun Poulsen

$
0
0
you could try

SELECT name, state_desc, is_auto_close_on, is_auto_shrink_on, *
FROM sys.databases
a Database is always "open", but the connection might be set to auto close. Not a good idea IMHO. Also you want to stay away from Auto shrink. It can ruin a database.

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images