Re: Indexing Question
From: Val Mazur (group51a_at_hotmail.com)
Date: 10/06/04
- Next message: JeffCT: "Executing a SQL Stored Procedure from VB 6.0"
- Previous message: Dan Artuso: "Re: Can't workout how to use MSAccess databases"
- In reply to: Darwin Weyh: "Indexing Question"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 5 Oct 2004 22:29:10 -0400
Hi,
Usually you need to index combination of the fields, involved into WHERE
clause. Sometimes creating index on one field is enough. It is just a matter
of what you need to achieve with what kind of efforts. Best way is to play
with the indexes to see what is the optimal for the application.
--
Val Mazur
Microsoft MVP
"Darwin Weyh" <shtdev.delete.this@weyh.net> wrote in message
news:%23E$1ybhqEHA.1712@tk2msftngp13.phx.gbl...
>I have a VB6 application in which I access a FP6 DB with ADO.
>
> As one of the tables gets bigger ( 20,000 Records) My response is
> degrading.
>
> A typical Recordset open is as follows
>
> SQLstr = "select * from orders where jobdate < {" & pDate & "} and
> complete = .T."
> RS.open sqlstr,db, adOpenStatic, adLockReadOnly
>
> What kind of index should I set up to speed this open up?
>
> Can someone point me to a good explanation of Indexes and how they relate
> to the SQL 'select' commands.
>
>
> Thanks,
>
> --
> Darwin C. Weyh
> shtdev.delete.this@weyh.net
> And for the spammers: dweyh@weyh.net
>
- Next message: JeffCT: "Executing a SQL Stored Procedure from VB 6.0"
- Previous message: Dan Artuso: "Re: Can't workout how to use MSAccess databases"
- In reply to: Darwin Weyh: "Indexing Question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|