Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Other Technologies / Clustering / December 2005

Tip: Looking for answers? Try searching our database.

Non Clustered Index

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Travis - 30 Dec 2005 10:10 GMT
Hi ,

  When I creare a non clustered index , I get error as show below ,

  Server: Msg 1904, Level 16, State 1, Line 1
Cannot specify more than 16 column names for statistics or index key list.
21 specified.

  SQL Server only support up to 16 key values ?

Signature

Travis Tan

Hilary Cotter - 30 Dec 2005 12:50 GMT
First off, this question should be posted in
Microsoft.public.sqlserver.programming. Clustering is a technology which
allows individual computers to share the same data and back each other up to
prevent system failures. Clients connect to a virtual server, whose
resources float between nodes which form the cluster.

Clustered indexes are when the data is clustered or grouped in a predefined
format or order for rapid retrieval of ranges of data.

16 columns makes your index very large and I suspect inefficient. You may be
able to use an indexed view to group your data in different orders for your
particular usage. And yes, clustered indexes only support a maximum of 16
columns or keys in SQL 200x.

Signature

Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com

> Hi ,
>
[quoted text clipped - 5 lines]
>
>   SQL Server only support up to 16 key values ?
Michael Hotek - 30 Dec 2005 12:57 GMT
Yes.  Why are you trying to create an index with 21 columns in it?  That is
quite a bit beyond overkill.

Signature

Mike
Mentor
Solid Quality Learning
http://www.solidqualitylearning.com

> Hi ,
>
[quoted text clipped - 5 lines]
>
>   SQL Server only support up to 16 key values ?
Mike Epprecht (SQL MVP) - 30 Dec 2005 13:08 GMT
Hi

Wrong newsgroup, crossposted to microsoft.public.sqlserver.programming

Why would you want to create a compound index of 16 or more columns? Your
query has to be very specific to be able to use it and the overhead
maintaining it will be high too.

If you have a table, with columns A-Z and you build and index on A, B, C, D
(in that column sequence), a where clause on A, B, C could use the index, a
query on column B can't, neither can a query on C, D. Column A always has to
be involved as it is the 1st sort sequence for the column.

Maybe the DB design is not optimal if you need to go to such extremes.

Regards
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland

IM: mike@epprecht.net

MVP Program: http://www.microsoft.com/mvp

Blog: http://www.msmvps.com/epprecht/

> Hi ,
>
[quoted text clipped - 5 lines]
>
>   SQL Server only support up to 16 key values ?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.