Viewing 15 posts - 61 through 75 (of 370 total)
Great back-to-basics question and I got it wrong because I wasn't paying enough attention. Err...
I think there is a copy and paste mistake in SELECT #2 and SELECT #3 as...
June 19, 2012 at 4:00 am
Very nice little article from some years ago! Thanks.
I agree with others that just dropping obsolete objects is a dangerous task, especially when you just got the job and don't...
June 17, 2012 at 11:52 am
mohammed moinudheen (5/28/2012)
I got this wrong as I selected the most evident answer 🙂
Same here. 🙂
May 29, 2012 at 9:29 am
mtassin (5/24/2012)I think that's what it is... I got it wrong.
The description makes sense... but I was looking at it as
A AND B OR C
In order to return from...
May 24, 2012 at 8:18 pm
dwain.c (5/20/2012)
DECLARE @t TABLE (status VARCHAR(30))
INSERT INTO @t
SELECT 'On Hold' UNION ALL SELECT 'On Hold' UNION ALL SELECT 'On Hold'
UNION ALL SELECT 'On Hold' UNION ALL...
May 21, 2012 at 5:03 am
tt-615680 (5/18/2012)
its very large around 2500000 from all tables.
2 million rows from all tables don't seem too much.
Do you have many VARCHAR(MAX), TEXT, VARBINARY(MAX), etc. columns in your tables?
I would...
May 18, 2012 at 10:57 am
This would work as well 🙂
SUM([column]) OVER () AS AllTotal
May 17, 2012 at 10:13 pm
Thank you for the question. I found it easy because we have three INSERT statements there. Each one is an implicit transaction. Now nothing would be returned if it was...
May 17, 2012 at 9:58 pm
I wasn't paying enough attention to detail here.
Table2's int column was just an int and nothing else. :hehe:
Time to go to bed for me.
Thank you for the question.
I still see...
May 17, 2012 at 9:48 pm
Thank you, ColdCoffee.
I totally forgot about DATENAME. :w00t:
DECLARE @Year INT = 2011;
SELECT TMP.lastDay,
DATENAME(WEEKDAY, tmp.lastDay)
FROM (SELECT DATEADD(DAY,
...
May 17, 2012 at 9:35 pm
How about this:
DECLARE @Year INT = 2011;
SELECT TMP.lastDay,
CASE (DATEPART(dw, tmp.lastDay) + @@DATEFIRST) % 7
WHEN...
May 17, 2012 at 9:17 pm
I loved this article. Very interesting to some of us who are learning the SQL Server internals and need to simulate disaster recovery.
May 6, 2012 at 7:22 pm
Sorry, guys, for not adding a note on how many answers should be selected.
Next time I'll pay more attention. 🙂
BOL had me a little confused on this concept because the...
April 25, 2012 at 5:28 am
You can't assign permissions to object types in SQL Server. But you could create a schema with only the procedures and tables you need to give permissions for and then...
April 24, 2012 at 11:07 am
Viewing 15 posts - 61 through 75 (of 370 total)