Posted By

robe on 12/10/08



Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


SQL Server truncate log and shrink file

 / Published in: SQL

  1. backup log somedb WITH truncate_only
  2. USE somedb
  3. sp_helpfile --this provides a list of files used by current db
  4. dbcc shrinkfile('somedb_log', 3)

Report this snippet  

You need to login to post a comment.