Viewing 4 posts - 1 through 4 (of 4 total)
Never argue with an idiot!
The script does not work. You can't argue with that!
June 17, 2016 at 3:31 am
FWIW:
(Sorry - couldn't work out how to format it nicely...)
[font="System"]
SELECT REPLACE(RTRIM(ISNULL(BODDS+' ','')+ISNULL(CTDDS+' ','')+ISNULL(NHDDS,'')),' ',',') AS DDS
,ISNULL(BOCLEARED,0)+ISNULL(CTCLEARED,0)+ISNULL(NHCLEARED,0) AS TotalCleared
,COALESCE(BOCLEAREDDATE,CTCLEAREDDATE,NHCLEAREDDATE) AS ClearedDate FROM BO
FULL OUTER JOIN CT ON BOCLEAREDDATE=CTCLEAREDDATE
FULL OUTER JOIN...
April 3, 2009 at 8:43 am
Hi,
Sorry if I'm locking the stable door after the horse has bolted, but have you checked out this article on "Parameter Sniffing"?
http://omnibuzz-sql.blogspot.com/2006/11/parameter-sniffing-stored-procedures.html
March 13, 2008 at 5:04 am
I'm not defending the cursor, but wouldn't the proposed solution cause potential Tempdb locking problems?
I always create the temp table first, then INSERT into it to avoid such issues.
e.g.
--Create temp...
February 18, 2008 at 6:21 am
Viewing 4 posts - 1 through 4 (of 4 total)