Shrink All Log Files Within A MS SQL Instance
This little SQL script is used to to shrink all the log files in a Microsoft SQL server instance. It uses the following function to get the job done: DBCC SHRINKFILE. declare @ssql nvarchar(4000) set @ssql= ‘ if ”?” not in (”tempdb”,”master”,”model”,”msdb”) begin use [?] declare @tsql nvarchar(4000) set @tsql = ”” declare @iLogFile int [...]
April 7, 2010 | Posted by stewart
Categories:
Tags: |