Viewing 15 posts - 751 through 765 (of 2,458 total)
roryp 96873 (5/5/2016)
Ray K (5/5/2016)
Just heed the warning of history! It's only May. Bigger collapses have happened in only a short period of time! ...
-- Itzik Ben-Gan 2001
May 5, 2016 at 12:05 pm
This feels good for a change...

-- Itzik Ben-Gan 2001
May 5, 2016 at 9:44 am
Something like this perhaps (I'm just guessing on the rank)...
-- Sample data
DECLARE @table TABLE ([Year] int, Region varchar(20));
INSERT @table VALUES (2013, 'South'), (2014, 'North'), (2015, 'South'), (2015, 'North');
--Review:
--SELECT * FROM...
-- Itzik Ben-Gan 2001
May 5, 2016 at 8:38 am
There are two ways to look at that question and, since I was not there I can't say for sure what they were asking.
If they wanted to know how...
-- Itzik Ben-Gan 2001
May 5, 2016 at 8:23 am
I think you can (go to msdn.com to find out for sure.
SQL 2005 has been retired fyi.
-- Itzik Ben-Gan 2001
May 4, 2016 at 3:53 pm
A couple things here.
First, the message is pretty clear. The SSIS package is failing because the login for SA, inside at least one of your SSIS connection managers is...
-- Itzik Ben-Gan 2001
May 4, 2016 at 3:47 pm
drew.allen (5/4/2016)
Alan.B (5/4/2016)
ROW_NUMBER does not take ties into consideration, RANK and DENSE_RANK do.
I would phrase that differently. They all take ties into consideration: RANK and DENSE_RANK treat ties...
-- Itzik Ben-Gan 2001
May 4, 2016 at 2:08 pm
Another way. And this will work for multiple trailing numbers or when there aren't any.
DECLARE @strings TABLE (LoginID VARCHAR(100))
INSERT INTO @strings
VALUES ('adventure-works\peter0'), ('Northwind\mary009'), ('Test\mark');
SELECT SUBSTRING(p, 1, ISNULL(NULLIF(PATINDEX('%[0-9]%',p),0),8000)-1)
FROM
(
...
-- Itzik Ben-Gan 2001
May 4, 2016 at 1:03 pm
Is there a reason to use Row_number instead of dense_rank on the first column. It appears dense_rank did the same thing.
ROW_NUMBER does not take ties into consideration, RANK and DENSE_RANK...
-- Itzik Ben-Gan 2001
May 4, 2016 at 12:56 pm
Note that, unless you ABSOLUTELY need it for some reason, you should get rid of that final ORDER BY statement. It will only slow down your query and does not...
-- Itzik Ben-Gan 2001
May 4, 2016 at 12:46 pm
Lynn Pettis (5/4/2016)
Do this so many times I didn't catch that the STUFF function was missing. Got it right without it there.
Me too.
-- Itzik Ben-Gan 2001
May 4, 2016 at 10:12 am
Yusuf Bhiwandiwala (9/18/2009)
The question is : How do we grey out a report parameter (date type or not)?
If greying out can be achieved, the SSRS world would be a happier...
-- Itzik Ben-Gan 2001
May 4, 2016 at 9:18 am
Eirikur Eiriksson (5/3/2016)
Alan.B (5/3/2016)
Eirikur Eiriksson (5/3/2016)
Alan.B (5/3/2016)
It all comes down to self-awareness and communication. Knowing your strengths,...
-- Itzik Ben-Gan 2001
May 3, 2016 at 2:14 pm
Eirikur Eiriksson (5/3/2016)
Alan.B (5/3/2016)
It all comes down to self-awareness and communication. Knowing your strengths, weaknesses and limitations,...
-- Itzik Ben-Gan 2001
May 3, 2016 at 1:27 pm
You'll find some scripts that you can alter as needed here as well.
-- Itzik Ben-Gan 2001
May 3, 2016 at 12:37 pm
Viewing 15 posts - 751 through 765 (of 2,458 total)