Viewing 2 posts - 1 through 2 (of 2 total)
Hi,
Here you go:
use tempdb
select name,(size*8)/1024 as Current_Size_MB,(max_size*8)/1024 as Total_Size_MB from sys.database_files
December 30, 2011 at 2:49 am
#1426813
View is mainly used for encapsulation, that is, hiding the complexity. In terms of performance, It will not help you a lot. For that, you need to go with...
December 30, 2011 at 1:24 am
#1426792