Re: Multiple 'OR' parameters in sql SELECT statement
From: Bob Barrows [MVP] (reb01501_at_NOyahoo.SPAMcom)
Date: 02/23/05
- Previous message: Chris Hohmann: "Re: Multiple 'OR' parameters in sql SELECT statement"
- In reply to: Chris Hohmann: "Re: Multiple 'OR' parameters in sql SELECT statement"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 23 Feb 2005 15:00:12 -0500
Chris Hohmann wrote:
>>
>> If you are passing a lot of values into that IN construct, you may
>> see a
>> performance boost from inserting them into a temp table and using an
> inner
>> join to that temp table, as opposed to using IN, which forces a scan
>> to be
>> used.
>>
>
> As an interesting side note, SQL Server 6.5 did this automatically.
> Here's a
> thread:
> http://groups-beta.google.com/group/microsoft.public.sqlserver.programming/browse_frm/thread/712dd4f655ef9b6e/3563e4708a6dff31
>
> There's no mention of this in SQL7.0+, so either it was removed from
> the
> engine or simply classified as a low level operation and omitted from
> the
> documentation.
Wow! That IS interesting. I'm going to do a little digging to see if I can
come up with some more info on this.
Bob
-- Microsoft MVP - ASP/ASP.NET Please reply to the newsgroup. This email account is my spam trap so I don't check it very often. If you must reply off-line, then remove the "NO SPAM"
- Previous message: Chris Hohmann: "Re: Multiple 'OR' parameters in sql SELECT statement"
- In reply to: Chris Hohmann: "Re: Multiple 'OR' parameters in sql SELECT statement"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|