Viewing 15 posts - 346 through 360 (of 2,462 total)
Jeff Moden (12/7/2016)
This Saturday, 12/10, marks the anniversary of a very unhappy event for me...
Ditto.
-- Itzik Ben-Gan 2001
December 8, 2016 at 10:09 am
Doing some code cleanup today, running into lots of this
insert into <someTable>
select <a bunch of stuff>
...
-- Itzik Ben-Gan 2001
December 8, 2016 at 10:00 am
Manic Star (12/8/2016)
Luis Cazares (12/8/2016)
Ed Wagner (12/8/2016)
Revenant (12/8/2016)
Kaye Cahs (12/8/2016)
Manic Star (12/8/2016)
crookj (12/8/2016)
Brandie Tarvin (12/8/2016)
Stuart Davies (12/8/2016)
Ray K (12/7/2016)
whereisSQL? (12/7/2016)
Manic Star (12/7/2016)
Ed Wagner (12/7/2016)
djj (12/7/2016)
Luis Cazares (12/7/2016)
Ed Wagner (12/7/2016)
DamianC (12/7/2016)
Revenant...
-- Itzik Ben-Gan 2001
December 8, 2016 at 9:56 am
You don't need coalesce here. NULL values are neither equal nor unequal when compared to other because NULL is unknown. Does a bag with an unknown number of apples have...
-- Itzik Ben-Gan 2001
December 6, 2016 at 8:19 am
I'm a little late here but actually started a solution on Friday that I just now had time to finish.
First and foremost: unless someone has an example of how...
-- Itzik Ben-Gan 2001
December 5, 2016 at 4:59 pm
Luis Cazares (12/5/2016)
crookj (12/5/2016)
djj (12/5/2016)
LaneLois
Lana
Turner
-- Itzik Ben-Gan 2001
December 5, 2016 at 4:05 pm
patelxx (12/1/2016)
CREATE FUNCTION fn_list_the_number(@count INT)
RETURNS TABLE
AS
RETURN
(
WHILE (@count <= 10)
BEGIN
PRINT CAST(@count AS...
-- Itzik Ben-Gan 2001
December 1, 2016 at 12:01 pm
Some DDL and easily consumable data would help circumvent any confusion but here's some sample code to get you started. Thom referred you to a calendar table article - that's...
-- Itzik Ben-Gan 2001
December 1, 2016 at 9:57 am
Ditto Grant's recommendation. I also like Idera's SQL Diagnostic Manager. It's been about 6 years since I last used it but, as a DBA I really liked it and the...
-- Itzik Ben-Gan 2001
November 30, 2016 at 11:42 am
N_Muller (11/30/2016)
Alan.B (11/29/2016)
You'll notice three UNION ALL's. The first query...
-- Itzik Ben-Gan 2001
November 30, 2016 at 9:54 am
My solution can be totally optimized and simplified but here's a solution that uses DelimitedSplit8K (see the link in my signature):
-- your sample data
declare @table table ( Col varchar(100) )
insert...
-- Itzik Ben-Gan 2001
November 29, 2016 at 5:06 pm
Using this sample data:
CREATE TABLE #myTable (dt date UNIQUE NOT NULL);
WITH E AS (SELECT v FROM (VALUES (1),(1),(1),(1),(1),(1)) t(v))
INSERT #myTable
SELECT CAST(DATEADD(DAY, ROW_NUMBER() OVER (ORDER BY (SELECT 1))-1, '20140101') AS...
-- Itzik Ben-Gan 2001
November 29, 2016 at 9:41 am
Very interesting read - I was not aware of this tool. Cool stuff - well done!
-- Itzik Ben-Gan 2001
November 29, 2016 at 8:05 am
Of that only works with the "numbers dash numbers dash letters" formatting.
Plus it boring... My "just for the fun of it" solution answered (what I thought) was a more interesting...
-- Itzik Ben-Gan 2001
November 28, 2016 at 1:31 pm
First - If you are using SSAS 2012 then look at this link: https://msdn.microsoft.com/en-us/library/ms170208(v=sql.110).aspx (what you posted was for SSAS 2016).
Second, ignore the second link for now (the one...
-- Itzik Ben-Gan 2001
November 28, 2016 at 1:11 pm
Viewing 15 posts - 346 through 360 (of 2,462 total)