How to Truncate a SQL DB Log File


Since I’m not a DBA, I do not remember it by heart

use master
go
dump transaction <database_name> with truncate_only
go
dbcc shrinkdatabase(<database_name>, 10)
go

Advertisements

One Response to How to Truncate a SQL DB Log File

  1. ADH Enterprise -Business Solutions…

    […]How to Truncate a SQL DB Log File « Notes of Windows Admin[…]…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: