Viewing 15 posts - 5,851 through 5,865 (of 26,490 total)
roryp 96873 (10/6/2014)
SQLDCH (10/6/2014)
Ugh, bad week for my vaunted receiving corps, slowly turning into a bad season. You can have the whole lot for Cousins, Rory.
Ha! Ya, a...
October 6, 2014 at 10:34 am
Steve Jones - SSC Editor (10/4/2014)
LutzM (10/4/2014)
Steve Jones - SSC Editor (10/2/2014)
Top priority for the IT team, which manages dev, is reducing SPAM. They are looking at integrating with...
October 4, 2014 at 1:43 pm
Definitely the weekend. I guess it is time to take a break from SSC.
October 4, 2014 at 12:32 pm
Sean Lange (10/1/2014)
SQLRNNR (10/1/2014)
FTR - Jack was renewed today as well.If I forgot, Congrats Jack.
Congrats Jack!!!
Congratulations to both Jason and Jack. Both are well deserved.
October 1, 2014 at 1:03 pm
david.dartnell (9/30/2014)
I am trying to better understand your solution, towards this end I have started with the inner most brackets -
SELECT DATEDIFF(MONTH, 0, GETDATE())
Upon first inspection I expected this...
October 1, 2014 at 12:06 am
BWFC (9/30/2014)
Lynn Pettis (9/30/2014)
How silver spoon can you get???
Four thousand plus points....
Anyway, could I possibly prevail upon the folks around here to do a little testing for me please. ...
September 30, 2014 at 4:19 pm
GilaMonster (9/30/2014)
pietlinden (9/28/2014)
@lastDayMonth INT
SET @currMonthNum = DATEPART(MM, GETDATE())
IF @currMonthNum IN (1, 3, 5, 7, 8, 10, 12)
SET @lastDayMonth = 31
IF @currMonthNum = 2
SET @lastDayMonth = 28
IF @currMonthNum IN...
September 30, 2014 at 3:42 pm
How silver spoon can you get???
September 30, 2014 at 3:14 pm
david.dartnell (9/28/2014)
I have written some SQL that is intended to populate a variable (int) called '@lastDayMonth' with the last day of the current month.
Instead of seeing a day number...
September 30, 2014 at 3:08 pm
Well, it works great, now I just need to figure out what it is telling me.
I am curious about part of it. The QueryStatement column is blank in all...
September 30, 2014 at 1:37 pm
GilaMonster (9/30/2014)
Jack Corbett (9/30/2014)
1. I'd work from home almost exclusively in this case and just be in the office for meetings.This, in an instant.
I SO want to...
September 30, 2014 at 11:57 am
SQLRNNR (9/29/2014)
Here is a deadlock shredder by Wayne Sheffield.
http://blog.waynesheffield.com/wayne/code-library/deadlocks/shred-deadlock-graph/
You can take the xml from the graph that is produced by XE and...
September 29, 2014 at 11:10 pm
Any help here would be appreciated. I am going to go get sleep as I have been up all night (work nights here in Afghanistan).
September 29, 2014 at 10:45 pm
Read up on RESTORE in BOL (Books Online). If you are doing reporting from the database it sounds like you maybe able to use the WITH STANDBY option.
September 26, 2014 at 2:22 pm
Eirikur Eiriksson (9/24/2014)
Lynn Pettis (9/23/2014)
Eirikur Eiriksson (9/23/2014)
😎
USE tempdb;
GO
SET NOCOUNT ON;
;WITH SAMPLE_DATA ([ID number],DateOfArrival,DateOfDeparture)
AS (SELECT * FROM (VALUES
(2031,'2014-03-20','2014-03-26')
...
September 26, 2014 at 10:19 am
Viewing 15 posts - 5,851 through 5,865 (of 26,490 total)