Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

sys.index_columns.key_ordinal versus index_column_id

$
0
0

http://msdn.microsoft.com/en-us/library/ms175105.aspx

What is the difference between key_ordinal and index_column_id?

One one table where there is no PK indicated by there is a clustered unique index with four fields, the key_ordinal values reflect the order of the fields in the index, the index_column_id has 3-4 reversed.

So I mainly wonder what the purpose of index_column_id is?

Thanks.

Josh

ps - SQL 2008 64-bit enterprise.



Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>