Re: Need help with hint syntax in SQL Server 2000
- From: Hugo Kornelis <hugo@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 15 Dec 2008 23:16:53 +0100
On Mon, 15 Dec 2008 12:16:40 -0800 (PST), Mark D Powell wrote:
Anyone able to explain why SQL Server was
unable to recognize that it shoul push the where clause condition down
to the table access?
Hi Mark,
Based on your very generic description, the only thing I can say is that
I would first check if the UNION ALL has something to do with it.
For more specific comments, though, we need more information. For
starters, we need the design of all tables and views involved (posted as
CREATE TABLE and CREATE VIEW statements, including all properties,
constraints, and indexes). Some sample data might help as well, though
in this case I would definitely want to see an execution plan (captured
with SET SHOWPLAN_ALL ON) and information about numbers of matching rows
in the various tables.
You can of course replace table and column names to protect sensitive
data, and you can also (in fact, I even encourage you to) simplify the
problem as far as possible.
--
Hugo Kornelis, SQL Server MVP
My SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
.
- Follow-Ups:
- Re: Need help with hint syntax in SQL Server 2000
- From: Mark D Powell
- Re: Need help with hint syntax in SQL Server 2000
- References:
- Need help with hint syntax in SQL Server 2000
- From: Mark D Powell
- Re: Need help with hint syntax in SQL Server 2000
- From: Erland Sommarskog
- Re: Need help with hint syntax in SQL Server 2000
- From: Mark D Powell
- Re: Need help with hint syntax in SQL Server 2000
- From: Erland Sommarskog
- Re: Need help with hint syntax in SQL Server 2000
- From: Mark D Powell
- Re: Need help with hint syntax in SQL Server 2000
- From: Mark D Powell
- Need help with hint syntax in SQL Server 2000
- Prev by Date: Re: Need help with hint syntax in SQL Server 2000
- Next by Date: DataArchitect 4.1 for SQL Server on LINUX/SOLARIS/WINDOWS/MAC OS/HPUX
- Previous by thread: Re: Need help with hint syntax in SQL Server 2000
- Next by thread: Re: Need help with hint syntax in SQL Server 2000
- Index(es):
Relevant Pages
|