Viewing 15 posts - 916 through 930 (of 1,246 total)
This is just a quick test... But according to this, the Windowed SUM is going faster... see what you think...
IF OBJECT_ID('tempdb..#temp', 'U') IS NOT NULL
DROP TABLE #temp;
CREATE TABLE #temp...
December 23, 2015 at 1:29 pm
Jeff Moden (12/23/2015)
(and, no... I refuse to move to GMail)..
There's always Hotmail & AOL. 😛
December 23, 2015 at 9:27 am
Yea... I'm right there with you. My latest test harness was based solely on my perception of what Jeff was talking about. I'm not certain that it's actually representative of...
December 22, 2015 at 3:59 pm
-- removing duplicate post --
December 21, 2015 at 9:01 pm
Sergiy (12/21/2015)
WITH
cte_Blocks AS (
SELECT
b.spid,
b.typ_of_block,
b.capdt,
b.blocked_spid,
blocked_level = CAST(1 AS INT),
blocking_chain = CAST(b.spid AS VARCHAR(8000))
FROM
#Blocking b
WHERE b.blocked_spid = 0
UNION ALL
SELECT
b.spid,
b.typ_of_block,
b.capdt,
b.blocked_spid,
blocked_level = cb.blocked_level +...
December 21, 2015 at 9:00 pm
Jeff Moden
December 21, 2015 at 8:48 pm
IGNORE_DUP_KEY = ON doesn't "ignore" duplicate keys per-se.
It simply discards new rows, that would cause a key to be duplicated if it were allowed into the table, without throwing...
December 21, 2015 at 2:54 pm
Jeff will no doubt follow up with something super cool... but in the mean time, this should give you the basic idea...
IF OBJECT_ID('tempdb..#Blocking', 'U') IS NOT NULL
DROP TABLE #Blocking;
...
December 21, 2015 at 10:36 am
I seem to recall reading something about beer popsicles... Ever see a drunk monkey with brain freeze? 😉
(I haven't... But I'd like to... and I don't care if that makes...
December 20, 2015 at 5:39 pm
Now I feel cheated... Mine only came with the yellow ones... :unsure:
December 20, 2015 at 5:01 pm
Extremely kind words sir... Thank you again!
As for the Monkey... They were all out of the non smoking ones when I placed my order...
December 20, 2015 at 4:54 pm
LOL... NULLs eh? Are you referring to "Missing & Applicable" or "Missing & Not applicable"? I think that's up there with religion & politics... 😛
December 20, 2015 at 4:39 pm
Jeff Moden (12/20/2015)
December 20, 2015 at 4:00 pm
Jeff Moden (12/20/2015)
Jason A. Long (12/20/2015)
Just because you CAN do something in SQL doesn't mean you SHOULD do it in SQL.
Heh... yeah... so where would you do it? SSRS?...
December 20, 2015 at 12:02 pm
Viewing 15 posts - 916 through 930 (of 1,246 total)