Showing posts with label truncate log. Show all posts
Showing posts with label truncate log. Show all posts

Monday, March 27, 2017

sql server truncate log script

 use ttt
 go
 sp_removedbreplication
    go
    alter database ttt set recovery simple
    go
    dbcc shrinkfile('ttt_log',200)
    go
    alter database ttt set recovery FUll
    go