Re: Prepared statement doing table scan

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Got it. Thanks Erland!

"Erland Sommarskog" <esquel@xxxxxxxxxxxxx> wrote in message
news:Xns9CA363E05F128Yazorman@xxxxxxxxxxxx
Abba (sql_help@xxxxxxx) writes:
Erland,
Well, it may be possible with a plan guide, but if my suspicion is
correct, it would only make matters worse.

Just curious, how a plan guide would have made things worse here?

The idea was to use a plan guide to force use of the index. But as you
can see from the outcome of thread, the index was not useful because of
the impicit conversion.


--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx


.



Relevant Pages

  • Re: more than 8192 characters in text file output
    ... Thanks Erland. ... results that are "export as grid" you can't choose the delimiter. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.programming)
  • Re: Syntax coloring: SERVICE
    ... If so, Erland, it is only because I have failed in my attempts to ... any version of Outlook. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.tools)
  • Re: stored procedure question
    ... Erland, ... regarding computing and large insert be done directly in the database. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: Simplest CLR
    ... Erland, or Santa Claus will put a lump of carbon credits in your stocking:) ... provided that you have SQL Server there. ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.server)
  • Re: Prepared statement doing table scan
    ... Abba writes: ... The idea was to use a plan guide to force use of the index. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.server)