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

Partition switching and indexing


With SQL Server 2014, it is possible for individual partitions of partitioned tables to be rebuilt.

In the following code example, we will rebuild a single partition, that is, partition number 5 of the IX_GETEST partitioned index on the dbo.t1 table:

ALTER INDEX IX_GETEST
ON dbo.t1
REBUILD Partition = 5

The ONLINE = ON option can also be used and now contains a further switch WAIT_AT_LOW_PRIORITY option that will allow you as a DBA to specify how long the rebuild process should wait for the necessary locks. The WAIT_AT_LOW_PRIORITY option will also allow the DBA to configure the termination of blocking processes related to the rebuild statement. This can be used in combination with the REBUILD Partition option.

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