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! ...
May 5, 2016 at 12:05 pm
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...
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...
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.
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...
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...
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
(
...
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...
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...
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.
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...
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,...
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,...
May 3, 2016 at 1:27 pm
Viewing 15 posts - 751 through 765 (of 2,458 total)