With pure SQL - how to do it?

I doubt it is possible, since even the SQL Management Studio fails to show the size of such a database in the UI.

Already tried:

exec sp_helpdb 'DbInRecMode'

...won't show anything;

exec sys.sp_helpfile 'DbInRecMode'

... something like file not found (Msg 15325)

Main pitfall seems to be the issue, that

select * from DbInRecMode.dbo.sysfiles

won't work when the database is in restoring mode. Any ideas?

link|improve this question
Why would you want this info during restore? – Shawn Melton Dec 1 '11 at 14:36
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.