Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 compress partition index without blocking
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

dmaxj
Posting Yak Master

174 Posts

Posted - 07/01/2013 :  12:43:33  Show Profile  Reply with Quote
Is it possible to compress a partitioned index without causing any blocking?

I have 35 partitions that have a clustered index and 2 non-clustered indexes. I would like to compress these partitions, but blocking seems to occur when tried. Is there any way to accomplish this task without blocking? please see my code below

ALTER INDEX PK_indexName 
ON dbo.tblName  REBUILD PARTITION = ALL 
WITH (DATA_COMPRESSION = PAGE ON PARTITIONS (1 TO 35))


Thanks

srimami
Posting Yak Master

160 Posts

Posted - 07/02/2013 :  07:47:40  Show Profile  Reply with Quote
The above code should work; let me check from my end and see if any alternative
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000