Skip to content

Marvin Sugirin

All around the world..

  • About
  • Lowe’s Coupon Cpdes
×

Truncate Logs

Posted on January 31, 2012 by Marvin Sugirin
alter database <mydb> set recovery simple
 go
 
 checkpoint
 go
 
 alter database <mydb> set recovery full
 go
 
 backup database pubs to disk = 'c:mydb.bak' with init
 go
 
 dbcc shrinkfile (N'mydb_log' , 1)
 go
  • Recommend on Facebook
  • share via Reddit
  • Share with Stumblers
  • Tweet about it
SQL

Post navigation

SQL – Find Space Used, Row Count of all tables in a database
Scroll to end to enable checkbox

Categories

  • Android
  • C#
  • Cordova
  • Development
  • Excel
  • Hardware
  • Ionic
  • iOS 7
  • Javascript
  • Jetta 2011
  • Jquery
  • Mac
  • Mobile Development
  • New Build
  • OSX
  • PhoneGap
  • PHP
  • Security
  • Sencha
  • Sencha Touch 2
  • Software
  • SQL
  • Uncategorized
  • Unix
  • Visual Studio
  • VMWare
  • Volkswagen
  • Web
  • Windows 2008
  • Windows 7
  • WP8
Proudly powered by WordPress | Theme: Ignis by aThemes.
  • follow:
  • RSS