Viewing 15 posts - 29,926 through 29,940 (of 59,101 total)
Quick little tip for finding file names in a known directory without using xp_CmdShell...
EXEC xp_Dirtree 'folderpath',1,1
The first "1" says "for this level only" and the second "1"...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 18, 2012 at 7:46 am
Any idea when the first one is coming out, Orlando?
--Jeff Moden
Change is inevitable... Change for the better is not.
May 18, 2012 at 7:38 am
dwain.c (5/17/2012)
The above debate between Jeff and Paul...
I'm not looking at it as a debate. It's just the normal kind of discussion two wireheads have about different things. 🙂
Shifting...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 18, 2012 at 7:17 am
Ok... since no one else took the testing suggestion...
--=====================================================================================================================
-- Test setup
--=====================================================================================================================
--===== Enable the auto-display of rowcounts just to get a little feedback on the test...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 18, 2012 at 7:00 am
dwain.c (5/18/2012)
Jeff Moden (5/17/2012)
To return precisely what you asked for...
DECLARE @Year DATETIME;
SELECT @Year = '2011';
WITH
cteDate AS
(
SELECT EOM = DATEADD(mm,number,@Year)-1
FROM master.dbo.spt_values v
WHERE...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 18, 2012 at 6:26 am
Eugene Elutin (5/18/2012)
Jeff Moden (5/16/2012)
--Jeff Moden
Change is inevitable... Change for the better is not.
May 18, 2012 at 6:09 am
Not so sure about that. I've beat the rCTE for this problem for CPU and absolutely smoked it for reads just by doing the "simple" conversion to a While...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 17, 2012 at 11:15 pm
Thomas Stringer (5/16/2012)
--Jeff Moden
Change is inevitable... Change for the better is not.
May 17, 2012 at 10:37 pm
Considering how bad the candidates have been lately, I believe I'm going to change my first question to "So tell me! Do you like porkchops punk? Well, DO...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 17, 2012 at 10:30 pm
Jay Pete (5/17/2012)
How can i make list of the last day of each month of the year 2011?
Output:
January-2011 :- 31-January-2011 Monday
February-2011:- 28-February-2011 Monday
March-2011:- 31-March-2011 Thursday
April-2011:- 30-April-2011 Saturday
May-2011:- 31-May-2011 Tuesday
June-2011:-...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 17, 2012 at 10:10 pm
Sachin 80451 (5/17/2012)
status ...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 17, 2012 at 9:47 pm
Just a sidebar... when I make a calendar table, I generally have 2 date columns. "Today" and "Tomorrow". It not only helps more easily group data by day,...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 17, 2012 at 9:35 pm
Crud. It's not my day. I have to be honest even if it's not going to look so good for me. :blush: I don't know if I...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 17, 2012 at 8:30 pm
Eugene Elutin (5/17/2012)
Don't use identity, use ROW_NUMBER() instead. You can start counting from any requested value...
Seconded...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 17, 2012 at 3:51 pm
CrankyRat (5/16/2012)
"Relational database technology is pretty much obsolete and archaic.", Geoffrey P. Malafsky, Ph.D. from the Karen Lopez link.What an idiot.
I'm really happy to see someone else thought those exact...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 17, 2012 at 3:27 pm
Viewing 15 posts - 29,926 through 29,940 (of 59,101 total)