脚本类似如下
SELECT * INTO #keep FROM Original WHERE CreateDate > '2011-12-31' TRUNCATE TABLE Original INSERT Original SELECT * FROM #keepDROP TABLE #keep压缩表空间
DBCC SHRINKDATABASE(DB_NAME)