Viewing 15 posts - 4,711 through 4,725 (of 5,843 total)
Gail, I ran that test set on SQL 2005 SP2 (can't install SP3 due to missing install code for SP2 apparently). I noticed that I have this index on...
June 2, 2009 at 6:46 am
use adventureworks
go
drop proc test
go
create proc test (@productid int = null, @quantity int = null)
as
set nocount on
select *
from [Production].[TransactionHistory]
where (@productid is null or @productid = ProductID) --indexed
and (@quantity is null...
June 1, 2009 at 6:58 pm
Steve Jones - Editor (6/1/2009)
TheSQLGuru (6/1/2009)
June 1, 2009 at 1:57 pm
Chris Harshman (6/1/2009)
TheSQLGuru (6/1/2009)
2) If you are...
June 1, 2009 at 12:32 pm
Noel McKinney (6/1/2009)
Chris Harshman (6/1/2009)
With everyone getting into their religious entrenched positions ...So far it isn't too religious, nobody has brought up parameter sniffing yet.
Actually I did in my "Time...
June 1, 2009 at 9:36 am
Chris Harshman (6/1/2009)
June 1, 2009 at 9:12 am
Steve Jones - Editor (6/1/2009)
June 1, 2009 at 8:49 am
Personally I hope lots of people keep on doing this because due to the staggeringly-horrible performance this type of query can have there will be more opportunities for me to...
June 1, 2009 at 6:25 am
Uncle Moki (5/28/2009)
GilaMonster (5/28/2009)
I'd be quite willing to bet that the problem will be back next month.
In a way, I hope you are right....even if only in the name...
May 29, 2009 at 10:09 am
Topical and timely words to the wise from Bart Duncan (someone who REALLY knows what is going on with SQL Server) and isn't just a pretender like myself! :w00t:
May 27, 2009 at 2:07 pm
Short-circuiting in this case has nothing to do with a programming language but rather how the sql query optimizer was coded. If it was designed/programmed to do short-circuiting then...
May 27, 2009 at 10:07 am
GilaMonster (5/22/2009)
TheSQLGuru (5/21/2009)
May 22, 2009 at 11:24 am
Gianluca Sartori (5/21/2009)
May 21, 2009 at 11:42 am
ORIGINAL CODE:
select distinct @Result = sum( column1 )
from table (nolock)
where ((column2 = @param1) or (@param1 = 0))
1) why do you have distinct? you are doing a SUM, which can...
May 21, 2009 at 9:35 am
Amy Russell (5/19/2009)
May 19, 2009 at 4:44 pm
Viewing 15 posts - 4,711 through 4,725 (of 5,843 total)