Viewing 15 posts - 1,411 through 1,425 (of 8,416 total)
GSquared (12/30/2011)
December 30, 2011 at 8:17 am
roryp 96873 (12/30/2011)
December 30, 2011 at 8:11 am
Some general comments:
I agree with Craig that the current indexing arrangement is probably not optimal for these lookups. A narrow unique index on the loyalty identifier that (implicitly or...
December 30, 2011 at 5:12 am
roryp 96873 (12/29/2011)
December 30, 2011 at 3:39 am
A SQL Server 2012 solution, for comparison's sake:
DECLARE @data TABLE
(
item INTEGER NOT NULL
)
;
INSERT @data
(item)
VALUES
(60),
...
December 30, 2011 at 3:14 am
PaulB-TheOneAndOnly (12/29/2011)
how about replacing:over (partition by account_number order by end_date asc ) by:
top 1 over (partition by account_number order by end_date desc)
That would be cool, but SQL Server does not...
December 30, 2011 at 1:12 am
DECLARE @time TIME = '20:10:10'
SELECT total_seconds =
DATEPART(SECOND, @time) +
60 * DATEPART(MINUTE, @time) +
3600 * DATEPART(HOUR, @time)
December 30, 2011 at 12:39 am
SQLRNNR (12/28/2011)
Badda bing - log backups. People should know this one.
True - but this was a change (in 2005) so for many people the change in behaviour will still...
December 28, 2011 at 10:53 pm
Jeff Moden (12/28/2011)
Heh... there goes THAT question.
It's always worth re-doing, it catches a lot of people out (and no-one reads these comments anyway :-))
December 28, 2011 at 4:43 am
I love it when a (only slightly educated) guess pays off 🙂
December 28, 2011 at 2:07 am
Hugo Kornelis (12/27/2011)
December 28, 2011 at 1:49 am
For anyone wondering about the cryptic comment in the UPDATE statement:
UPDATE dbo.Event
SET EndDate = DATEADD(dd,
...
December 28, 2011 at 12:27 am
There's always a temptation with QotD to keep expanding it until the question is 'perfect'. This question seems to have fallen victim to that temptation; in attempting to cover...
December 27, 2011 at 11:46 pm
Interesting - I cheated, obviously, and found there are nine, but it appears eight is also right:
December 25, 2011 at 2:25 am
Americans. Sigh.
Happy Christmas, wherever you are. Off to find some forum questions to replace the seven points missed here today.
December 23, 2011 at 11:11 pm
Viewing 15 posts - 1,411 through 1,425 (of 8,416 total)