It is advisable po na yung database ninyo ay na-back up na bago ninyo i-execute itong mga queries na sumusunod:
--check nyo yung statistics ng transaction log space usage
dbcc sqlperf(logspace)
--backup nyo yung log; TRUNCATE_ONLY po ay ire-remove yung inactive part ng log file
backup log [dbname] with truncate_only
--alamin nyo yung transaction log filename ng database nyo
sp_helpdb 'dbname'
--actual na pag-shrink
DBCC SHRINKFILE ([dbname_Log] ,10,TRUNCATEONLY)
--parameters: transaction log filename, target size in MB, TRUNCATEONLY po ay ire-release
--ang unused space sa log file para magamit ng operating system
0 comments:
Post a Comment