Pages

Monday, February 27, 2012

STEPS TO DELETE LOG FILE OF A DATABASE...

  • Backup the database
  • Detach the database, either by using Enterprise Manager or by executing : *Sp_DetachDB [DBName]*
  • Delete the transaction log file. (or rename the file, just in case)
  • Re-attach the database again using: *Sp_AttachDB [DBName]*
  • When the database is attached, a new transaction log file is created.

1 comments:

System Administrators, Indiapost,Kerala said...

i think we can use the shrink DB query. it is easy.

Post a Comment

Related Posts Plugin for WordPress, Blogger...

Blogroll