lamp

Deleting without generating log entries in log files

Published 24 June 09 10:19 AM | Frederick.Chapleau

10000 rows at a time.

DECLARE @i INT
SET @i = 1

SET ROWCOUNT 10000

WHILE @i <> 0
BEGIN
    DELETE FROM dbo.table

    SELECT @i = @@ROWCOUNT
END

SET ROWCOUNT 0

-f.

Filed under:

Comments

No Comments

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Protected by FormShield
Refresh
Listen
Please enter the characters shown on the image


Code: