View the free space of the database disk partition and the output of the error log

--View the remaining size of the database disk space

 exec master: xp_fixeddrives or exec xp_fixeddrives

 

---- View the current data database space usage
  exec sp_spaceused

 

---- List the last date and size of the error log
  EXEC master.dbo.xp_enumerrorlogs

 

------- List the contents of the error log
exec xp_readerrorlog 0, 1, null, null, '2017-03-01', '2017-03-03', 'desc'

 ------- SQL 2012 View log content with parameters:


 

Published 22 original articles · praised 7 · 100,000+ views

Guess you like

Origin blog.csdn.net/qyx0714/article/details/60956380