Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
denis_the_thief
Aged Yak Warrior
596 Posts |
Posted - 2010-05-17 : 12:01:07
|
| I have a non-unique index on a table: Col1Now I have just added a non-unique index on the same table: Col1, Col2My question is, should I remove the original index on Col1?Would it make any difference if the index on Col1, Col2 was unique? |
|
|
GilaMonster
Master Smack Fu Yak Hacker
4507 Posts |
Posted - 2010-05-17 : 12:10:15
|
| Most likely, yes. The index on Col1 is redundant now with the wider index there, regardless of unique/non-unique status of the new one.You'd only leave it there if the new index is significantly wider and using it reduces performance of queries that used the old index significantly.--Gail ShawSQL Server MVP |
 |
|
|
denis_the_thief
Aged Yak Warrior
596 Posts |
Posted - 2010-05-17 : 12:52:50
|
| Thank you. |
 |
|
|
|
|
|