Quantcast
Channel: CodeFari
Viewing all articles
Browse latest Browse all 265

How can we identify used space in log file?

$
0
0
Many times we face this question in interview “How can we identify used space in log file”.

 Using following DBCC command you can identify the used space in log file.


DBCCSQLPERF('LOGSPACE')



Result:















You can see in result first column display DB name and second columns display total log file size in MB while third column contains used size in MB which is our answer.

Viewing all articles
Browse latest Browse all 265

Trending Articles