Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
Administering
»
Sysdatabases Status
Sysdatabases Status
Rate Topic
Display Mode
Topic Options
Author
Message
Rem70Rem
Rem70Rem
Posted Thursday, January 08, 2009 3:39 PM
SSC Veteran
Group: General Forum Members
Last Login: Wednesday, May 01, 2013 2:47 PM
Points: 201,
Visits: 649
HI,
I have 2 databases with the following status in sysdatabases (4194320, 4194328). Where I can find the definition of these status?
Thanks,
Post #632939
RBarryYoung
RBarryYoung
Posted Thursday, January 08, 2009 4:14 PM
SSCrazy Eights
Group: General Forum Members
Last Login: Saturday, May 04, 2013 11:13 AM
Points: 9,855,
Visits: 9,374
The BOL article on sysdatabases.
-- RBarryYoung
,
(302)375-0451
blog:
MovingSQL.com
, Twitter:
@RBarryYoung
Proactive
Performance Solutions, Inc.
"Performance is our middle name."
Post #632961
Lowell
Lowell
Posted Thursday, January 08, 2009 5:04 PM
SSChampion
Group: General Forum Members
Last Login: Today @ 5:28 PM
Points: 11,627,
Visits: 27,692
see the thread here:
http://www.sqlservercentral.com/Forums/Topic326235-5-2.aspx
it's got a complete explanation on the flags., as well as a code snippet to plug in your status and get the results.
Lowell
--
There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #632979
free_mascot
free_mascot
Posted Thursday, January 08, 2009 11:43 PM
SSCommitted
Group: General Forum Members
Last Login: Wednesday, April 17, 2013 3:39 AM
Points: 1,768,
Visits: 1,312
In BOL; I do not found status value like 4194320, 4194328.
What is the status of the database?
---------------------------------------------------
"Thare are only 10 types of people in the world:
Those who understand binary, and those who don't."
Post #633111
Arun Jebakumar
Arun Jebakumar
Posted Friday, January 09, 2009 12:13 AM
SSC Veteran
Group: General Forum Members
Last Login: Monday, January 07, 2013 8:29 AM
Points: 241,
Visits: 262
It goes like this..
4194320 = 4194304 + 16
4194304 = autoshrink
16 = torn page detection
4194328 = 4194304 + 16 + 8
4194304 = autoshrink
16 = torn page detection
8 = trunc. log on chkpt
Post #633122
Mark Harrison-282986
Mark Harrison-282986
Posted Monday, August 20, 2012 12:44 AM
Grasshopper
Group: General Forum Members
Last Login: Wednesday, May 08, 2013 9:47 PM
Points: 21,
Visits: 41
I use the bitwise and operator (&) to pull the status column apart for inspection.
For example:
SELECT
name
FROM
master..sysdatabases
WHERE
name NOT IN ('tempdb')
AND
status & 512 <> 512
512 means the database is offline. This query returns a list of database names where the database is online.
Post #1347005
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.