Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: factors deciding good index


Message #1 by "Chirag Shah" <chiragiit@y...> on Sun, 26 May 2002 14:57:36
Hello !
My questin can be too general, but I am generally having trouble deciding 
what field/fields should be indexed in a database.? PrimaryKey field is an 
obvious choice but.? (For SQL Server 2000 and MS Access 2000)

Message #2 by "Drew, Ron" <RDrew@B...> on Sun, 26 May 2002 14:08:19 -0400
The field(s) that you key on and access most in the WHERE clause
WHERE  a =3D 123      b=3D"abc"   a > 123    a < 123   IN is OK
But do not index is you are going to use LIKE
WHERE streetaddr LIKE "%elm%"

DB has no bearing

-----Original Message-----
From: Chirag Shah [mailto:chiragiit@y...]
Sent: Sunday, May 26, 2002 10:58 AM
To: ASP Databases
Subject: [asp_databases] factors deciding good index


Hello !
My questin can be too general, but I am generally having trouble
deciding
what field/fields should be indexed in a database.? PrimaryKey field is
an
obvious choice but.? (For SQL Server 2000 and MS Access 2000)


  Return to Index