SQLRx® Tip of the Month
 
September 2015
______________________________________________________________________________
SQL 2008

SQL Server Administration:  Available in SQL Server 2014 Enterprise Edition since can only be done using ONLINE rebuilds.


 


 

Index rebuilds have been enhanced with the WAIT_AT_LOW_PRIORITY option. It is used to set the duration in minutes to wait, as well as behavior when blocking happens. When setting WAIT_AT_LOW_PRIORITY you also must set MAX_DURATION and ABORT_AFTER_WAIT to tell SQL how long to wait for blocking and then what to do after that amount of time has expired if blocking is still happening.
 

ALTERINDEX ix_RoadRaces_State

on dbo.RoadRaces

REBUILDWITH (ONLINE=ON (WAIT_AT_LOW_PRIORITY(MAX_DURATION= 10,ABORT_AFTER_WAIT=SELF))


 

  • MAX_DURATION = time [MINUTES ]
  • ABORT_AFTER_WAIT = [NONE | SELF | BLOCKERS } ]
    • NONE = Keep waiting

    • SELF = Give way to the user queries

    • BLOCKERS = Kill all user transactions that block the online index rebuild


SQLRx has worked hard to minimize the impact of monitoring SQL Servers to the point that we are able to monitor high transaction systems with little impact (1% load) on the target system. Contact us today to help you monitor your SQL servers!

As always, don't forget to regularly monitor the 11 VitalSigns  used by SQLRx to debug performance bottlenecks.

If you have a SQL question you'd like us to answer, and possibly use for the next SQLRx Tip of the Month, email it to us!  If you missed any of our previous tips, you can view them here.

For assistance or more information on optimizing your SQL Server Environment, visit us at www.sqlrx.com or email Lori Brown at lorib@isi85.com.


 

Phone: 214.526.7680 x 113

Toll free:  800.85.SQLRx  (x113)

blog.sqlrx.com

@SQLRx
 


 

Integrated Services, Inc.                                    
2008 winner logo small
Turning Data Into Profit


 

30 Years of Credibility & Trust


 

Join our email list          Check out our events          SQLRx Downloads