Shrink All Log Files Within A MS SQL 2008 Instance
This is an update to a previous post (Shrink All Log Files Within A MS SQL Instance) that has been edited to work in SQL Server 2008. declare @ssql nvarchar(4000) set @ssql= ‘ if ”?” not in (”tempdb”,”master”,”model”,”msdb”) begin use [?] declare @tsql nvarchar(4000) set @tsql = ”” declare @recmodel nvarchar(10) declare @iLogFile int declare [...]
June 18, 2010 | Posted by stewart
Categories:
Tags: |