Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting Started with SQL Server 2014 Administration

You're reading from   Getting Started with SQL Server 2014 Administration Optimize your database server to be fast, efficient, and highly secure using the brand new features of SQL Server 2014

Arrow left icon
Product type Paperback
Published in Apr 2014
Publisher Packt
ISBN-13 9781782172413
Length 106 pages
Edition Edition
Arrow right icon
Author (1):
Arrow left icon
Gethyn Ellis Gethyn Ellis
Author Profile Icon Gethyn Ellis
Gethyn Ellis
Arrow right icon
View More author details
Toc

Delayed Durability and transaction log flush


Delayed Durability means that it is possible that there will be transactions that have been reported as committed, and yet aren't written or hardened to the database transaction log. You know this and should be prepared to accept the potential data loss should the system crash or failover. But what if you need to take the system down for some reason? You wouldn't want to lose data as a result of planned outage. So, if your database is using Delayed Durability, you need some way of manually flushing the log to the disk. With SQL Server 2014, there are two ways to do this:

  • You can execute the system-stored procedure called sp_flush_log. This will flush all committed transactions that are using the Delayed Durability option to the disk. To force a full flush of the in-memory log to the disk, execute the command exec sp_flush_log.

You can also execute a fully durable transaction that makes changes to the same database. This will also force a flush of...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image