I've just been adding an Index to a table in SQL Server 2005 and it got me thinking. What is the difference between creating 1one index and definingacross multiple columns over having 1 index perversus creating multiple indexes, one per column you want to index.?
Are there certain reasons why one should be used over the other?
For example:
Create NonClustered Index IX_IndexName On TableName (Column1 Asc, Column2 Asc, Column3 Asc) Versus:
Create NonClustered Index IX_IndexName1 On TableName (Column1 Asc) Create NonClustered Index IX_IndexName2 On TableName (Column2 Asc) Create NonClustered Index IX_IndexName3 On TableName (Column3 Asc)