Size for DB in Suspect\OFFLINE

how to check the DB size and other details which is in SUSPECT\OFFLINE mode in SQL Server 2000
more ▼

asked Mar 01, 2011 at 12:21 PM in Default

srivivek gravatar image

519 41 42 43

(comments are locked)
10|1200 characters needed characters left

2 answers: sort voted first
Look at the file sizes? Find them from the master..sysaltfiles table.
more ▼

answered Mar 01, 2011 at 12:26 PM

ThomasRushton gravatar image

ThomasRushton ♦
34.2k 18 20 44

thank you Thomas Rushton
Mar 01, 2011 at 01:15 PM srivivek
(comments are locked)
10|1200 characters needed characters left

According to this the sysaltfiles table has been deprecated.

Use master.sys.master_files instead, and know that the size returned by this table is the number of 8 kb pages in your database file. ([BOL][2])

[2]: http://msdn.microsoft.com/en-us/library/ms186782.aspx
more ▼

answered Mar 01, 2011 at 01:45 PM

Jos Menhart gravatar image

Jos Menhart
222 6 7 7

Way to keep us current :)
Mar 01, 2011 at 02:28 PM KenJ
Yeah, but it's a query about SQL2000... which is also deprecated...
Mar 01, 2011 at 02:38 PM ThomasRushton ♦
shame, I missed that, completely. Just started databases on SQL 2005 :-).
Mar 01, 2011 at 02:45 PM Jos Menhart
@Jos Menhart - you n00b! ;-) Started on SQL 4.whatever... The worrying part is that my most recent SQL 2000 build was just a couple of months ago.
Mar 01, 2011 at 02:51 PM ThomasRushton ♦
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: Mar 01, 2011 at 12:21 PM

Seen: 587 times

Last Updated: Mar 01, 2011 at 12:28 PM