close
DECLARE @SQL nvarchar(512)
DECLARE @Count INT = -1
SET @SQL = 'DELETE TOP (1000) FROM [資料庫名稱] OPTION ( MAXDOP 1 )';
WHILE @Count <> 0
BEGIN
BEGIN TRAN
exec sp_executesql @SQL
SET @Count = @@ROWCOUNT
COMMIT
END
文章標籤
全站熱搜
留言列表