Hi Reidar,
Merry Christmas and thank you for using MSDN Newsgroup! It's my pleasure to
assist you with your issue.
So, you have a combo box, the row is from a table ( or a query ), you
wonder if if have indexes in the talbe could speed up and the more indexes
the table has, the faster it will be, right?
Here is some techniques for your to use index on you table.
1) There may be no performance improve for very small tables.
If you have just five records in a table, there may be no difference to
have or have no index on it. Because the the index information will be
saved in a specific structure. When retrieve data from a indexed table, it
will search this structure first, then get the data.
2) For a query, just as your combo box get data from the table, if you
choose all the records in a table, one index is enough. You'd better choose
the short, high selectivity and less frequently modified field(s) as your
index. For example, if you have a table of employee include EmployeeID,
LastName, FirstName, Gender, Address. The EmployeeID is the best choice.
3) For a specific query, such as 'select FirstName form Your_Table where
......', to have an index on field 'First Name' will cause the speed
faster. Because this will cover the query. In gereral, the filters in the
where clause will determine which indexes will be most useful.
Hope this information useful to your question. If you still have questions.
Please feel free to post new message here and I am ready to help!
Happy New Year!
Best regards
Baisong Wei
Microsoft Online Support