lamp

June 2009 - Posts

Deleting without generating log entries in log files
24 June 09 10:19 AM | Frederick.Chapleau | with no comments

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:
One of the best way to disconnect Idle Sessions
01 June 09 01:13 PM | Frederick.Chapleau | with no comments
  1. Go to Start - Programs - Administrative Tools - Terminal Services Configuration.
  2. Right Click on the RDP Connection and go to the sessions tab. 
  3. That will create server wide settings and you can choose to over ride individual user settings.

Yesss, and it works even on a standalone server.

-f.

Filed under: