Viewing 15 posts - 316 through 330 (of 1,193 total)
Well, the fact that you beat him doesn't change the fact that he beat me 🙂
Just means two people beat me, so I'm even older and slower than I feared.
Cheers!
December 14, 2016 at 2:09 pm
Lynn Pettis (12/14/2016)
Jacob Wilkins (12/14/2016)
December 14, 2016 at 2:05 pm
The problem is that when StartDate is not null, you convert EndDate to VARCHAR and then concatenate it with a bunch of strings without checking whether it is null or...
December 14, 2016 at 1:52 pm
Of course DATEDIFF(wk...) has a specific meaning in SQL Server, but I don't think anyone disagrees with that.
My point is that when someone asks in English "Hey, how can I...
December 14, 2016 at 12:12 pm
MMartin1 (12/14/2016)
James Tran (12/13/2016)
CREATE FUNCTION [dbo].udfGetWeeksAndDays
(
@StartDate DATETIME
,@EndDate DATETIME...
December 14, 2016 at 11:41 am
I'm sure we all are aware of this, but just to be clear for others who might stumble across this discussion, this functionality is tied to a version of SSMS,...
December 14, 2016 at 11:29 am
HanShi (12/14/2016)
First: with a REBUILD of the indexes the stats are updated also. Thus it is not necessary te run a separate UPDATE STATS again.
Just an addition to this comment,...
December 14, 2016 at 8:47 am
As Sergiy has already indicated, the assumption that it can't be in the source data because it's CHAR/VARCHAR is incorrect.
That can be shown in multiple ways.
To pick a couple...
December 13, 2016 at 4:15 pm
goher2000 (12/13/2016)
December 13, 2016 at 11:31 am
The order of returned results is never guaranteed without an ORDER BY, so if you require a result set with a guaranteed order, then yes, you must use an ORDER...
December 13, 2016 at 9:42 am
It's just a warning, and shouldn't prevent the login in question from actually creating the table.
Further, as far as I've seen it's just a quirk of SSMS when designing through...
December 12, 2016 at 3:28 pm
Just in case anyone else happens upon this and is temporarily confused as I was, the accepted solutions do include a row for CustomerKey=4 in their results, which is in...
December 9, 2016 at 10:27 am
From https://msdn.microsoft.com/en-us/library/ms176057(v=sql.110).aspx:
If no rows have been inserted into the table since the table was created, or if all rows have been removed by using the TRUNCATE TABLE statement, the first...
December 5, 2016 at 9:11 am
BLOB EATER (12/1/2016)
ignore the above - I don't think you use that as a SELECT statement and WHERE clauses.
Should be able to.
I just ran this to find everything in...
December 1, 2016 at 9:08 am
Are we sure about this?
If the requirement is YTD and 2 full years prior, then for right now that would be 2016 YTD, all of 2015, and all of 2014.
The...
November 29, 2016 at 2:25 pm
Viewing 15 posts - 316 through 330 (of 1,193 total)