Delete SQL Server 2005 records without logging

前端 未结 7 1135
北恋
北恋 2020-12-28 08:15

How to delete records from SQL Server 2005 tables without logging them into transaction logs.

I do not wish to log because once deleted, those records will never be

7条回答
  •  一个人的身影
    2020-12-28 08:42

    Just Try to delete the records by adding these statements before and after the delete statements. traceon(610) and traceoff(610). it is like this

    dbcc traceon(610)
    
    --Your Delete Statement
    delete statement
    
    
    dbcc traceoff(610)
    

提交回复
热议问题