views:

33

answers:

2

hi

i have table (MyTbl) that has 3 field's A,B,C

this table contain 800000 records.

what is the best way to receive fast result ?

i try this:

select top 1 A from MyTbl where A='123'

but it isn't fast

i work with Access 2007 - and C# program

A: 

Create an index on the column A in MyTbl.

Winston Smith
A: 

Create an index on table MyTbl, field A.

Jaroslav Jandek
thank's for the help, can i get any sample for how to do it ? (the most simple)
Gold
Have you even read the article I have linked to? It is a programmatic version on how to add an index. You can of course do it click-style: `Design -> Field -> Properties -> General -> Indexed`.
Jaroslav Jandek