Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

how to create unique nonclustered index on partitioned table without including partition column Expand / Collapse
Author
Message
Posted Monday, August 02, 2010 6:28 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, February 19, 2013 9:07 AM
Points: 134, Visits: 656
I have a table 'fddb' with 4 million rows. For better performance we thought of partitioning the table.It has clustered index on primary key column and an unique nonclustered index on four unique key columns. I had partitioned table with primarykey as partition column. But while creating unique nonclustered index on the columns it throwing me error like ''Partition columns for a unique index must be a subset of the index key.''

Is there any way to create unique nonclustered index on a partitioned table without including the ''Partition column.

Post #962125
Posted Monday, August 02, 2010 6:44 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, February 19, 2013 9:07 AM
Points: 134, Visits: 656
Can anyone please suggest me a solution on the above problem
Post #962135
Posted Monday, August 02, 2010 7:42 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Tuesday, June 04, 2013 4:09 AM
Points: 1,618, Visits: 20,904
One more cross-post. I have responded to your question here

Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
Post #962194
Posted Monday, August 02, 2010 7:57 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 2:13 AM
Points: 38,105, Visits: 30,396
Adiga (8/2/2010)
One more cross-post. I have responded to your question here


That link points to a thread on XML by a different poster.



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #962207
Posted Monday, August 02, 2010 8:04 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Tuesday, June 04, 2013 4:09 AM
Points: 1,618, Visits: 20,904
GilaMonster (8/2/2010)
Adiga (8/2/2010)
One more cross-post. I have responded to your question here


That link points to a thread on XML by a different poster.


Sorry I posted it in the wrong forum.

Vamshi,

Please check if this article meets your requirement.



Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
Post #962211
Posted Tuesday, August 03, 2010 12:28 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, February 19, 2013 9:07 AM
Points: 134, Visits: 656
Hi Pradeep,

Thanks for your response.
Post #962617
Posted Tuesday, August 03, 2010 4:30 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, February 19, 2013 9:07 AM
Points: 134, Visits: 656
Is there any other way other than using DML triggers?
Post #962702
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse