IP

Technical Article

RE: shrinking a transaction log

  • Reply

To shrink a log file, you should call sp_dboption before using DBCC shrinkfile (see the script below) It's usually enough. /* shrink a log file WARNING: change the database name and the logical name of the log file (found in sysfiles). database: MyDB log file: MyDB_Log */ USE master go EXEC sp_dboption 'MyDB', 'trunc. log […]

You rated this post out of 5. Change rating

2003-08-20

1 reads

Blogs

Denver Dev Day Oct 2024 Slides

By

Here are the slides from my talk today: CI in Azure DevOps If you...

Should I Learn PostgreSQL

By

I got asked this question recently: I constantly see PostgreSQL on Microsoft slides, email,...

A New Word: Hickering

By

hickering – n.  the habit of falling hard for whatever pretty new acquaintance happens...

Read the latest Blogs

Forums

7 sept, scheduled book

By philip.scott

Comments posted to this topic are about the item 7 sept, scheduled book

7 sept, schedlued article

By philip.scott

Comments posted to this topic are about the item 7 sept, schedlued article

6 sept, published book

By philip.scott

Comments posted to this topic are about the item 6 sept, published book

Visit the forum

Question of the Day

Azure Data Lake Storage Gen 2

Azure Data Lake Storage Gen 2 is built on ...?

See possible answers