This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- This script deletes all obsolete WSUS updates from a WSUS database. | |
-- For more information, visit http://thebashfuladmin.com/2016/05/13/workaround-for-wsus-sql-timeout-errors/ | |
USE SUSDB | |
DECLARE @UpdateID INT | |
DECLARE @message varchar(1000) | |
CREATE TABLE #ObsoleteUpdatesToCleanup (UpdateID INT) |