Re: WHERE 1=2 with performance nightmares
- From: "Kim Madsen" <kbm@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 1 Aug 2007 22:43:28 +0200
Hi,
Sounds like a where clause added by an api or middleware to get the field
definitions but not any records.
--
best regards
Kim Madsen
kbm@xxxxxxxxxxxxxxxxxxxxxxxxx
www.components4developers.com
www.myc4d.com - Your access to cool code
blogs.myc4d.com - Your access to code tidbits and comments
The best components for the best developers
Application server enabling technology for developers
"Sarah" <SarahBram@xxxxxxxxxxx> skrev i en meddelelse
news:46b0c565$1@xxxxxxxxxxxxxxxxxxxxxxxxx
Recently we started seeing this "WHERE 1=2" in sql profiler trace that
even makes a lot of our sql statements invalid when there is *already* a
WHERE clause in our sql.
Here is an example copied from a trace file:
SET FMTONLY ON SELECT Col1,Col2 from Table1 WHERE Col1 = 8 and Col2 = 6
WHERE 1=2 SET FMTONLY OFF
The actual sql we wrote inside the executable for this example is:
SELECT Col1,Col2 from Table1 WHERE Col1 = 8 and Col2 = 6
Btw, some of our guys have recently tried replication feature with our
servers. Has that turned on some kind of server setting that cause all
this?
The reason we started worrying about this is, we are experiencing
performance issues like timeouts, connection losses etc.,
Thanks in advance,
Sarah
D7 + SQL Server 2000/2005
ADO with Provider=SQLOLEDB.1
.
- Follow-Ups:
- Re: WHERE 1=2 with performance nightmares
- From: Craig Stuntz [TeamB]
- Re: WHERE 1=2 with performance nightmares
- From: Dennis Landi
- Re: WHERE 1=2 with performance nightmares
- References:
- WHERE 1=2 with performance nightmares
- From: Sarah
- WHERE 1=2 with performance nightmares
- Prev by Date: Another reason not to use black box crypto
- Next by Date: Re: Extremely long build times
- Previous by thread: Re: WHERE 1=2 with performance nightmares
- Next by thread: Re: WHERE 1=2 with performance nightmares
- Index(es):
Relevant Pages
|