Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Helping a Buddy find an answer
Message
From
22/11/1999 18:10:15
 
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00293895
Message ID:
00294116
Views:
28
>>The whole notion of helping a friend IMO is the basis of what makes the FoxPro community tick.
>
>I completely agree. I have noticed that this ideal (is that right?) is not as strong in the other IT communities. Too bad..
>
>-Mike

Mike,

Here's what Mark sent me back. Can you help me decipher it please?

Doug,

Thanks for the relay. Here are the results testing the suggestion:

> SET STATISTICS IO ON
> SELECT * FROM appl WHERE name_licensee LIKE 'tab%'
> SELECT * FROM appl WITH INDEX() WHERE name_licensee LIKE 'tab%'
> SET STATISTICS IO OFF
>
> Where is the name of the index on the name_licensee column.
>
> The WITH INDEX() is an optimizer hint. With it, I forcing the optimizer to
> use the specified index. We're interested in the Logical Page count. If
the
> first query has a smaller value, SQL Server is solving the query in the
best
> possible way. If the second query has a smaller value...

Results from 1st query:
Table 'appl'. Scan count 1, logical reads 13158, physical reads 0,
read-ahead reads 11697.

Results from 2nd query: (much faster performance, BTW)
Table 'appl'. Scan count 1, logical reads 522, physical reads 16, read-ahead
reads 2.

Thanks again!!

DD
Best,


DD

A man is no fool who gives up that which he cannot keep for that which he cannot lose.
Everything I don't understand must be easy!
The difficulty of any task is measured by the capacity of the agent performing the work.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform