Kurze Einführung oder Anweisungen zum Befolgen dieser Schritte:
truncate table Sitelog;
truncate table exceptions;
truncate table OCLCSearch_History;
-----------------------------------
Bei Delete muss man aufpassen, das das .ldf nich vollläuft:
--Deleting millions of records from a table without blowing the transaction log
DECLARE @continue INT
DECLARE @rowcount INT
SET @continue = 1
WHILE @continue = 1
BEGIN
PRINT GETDATE()
SET ROWCOUNT 10000
BEGIN TRANSACTION
delete from EventLog
SET @rowcount = @@rowcount
COMMIT
PRINT GETDATE()
IF @rowcount = 0
BEGIN
SET @continue = 0
END
END
-----------------------------------
x
Seiten ID
69093