Viewing 15 posts - 46,246 through 46,260 (of 59,101 total)
Fellow who goes by the handle "Fraggle" posted a function at the following URL... it seems to work quite reliably for the days ahead that I tested it for...
http://www.sqlservercentral.com/Forums/Topic153606-203-3.aspx#BM591629
--Jeff Moden
Change is inevitable... Change for the better is not.
December 31, 2008 at 7:55 pm
andrewd.smith (12/23/2008)
DECLARE @days int
SELECT @days = 10
DECLARE @inputDate datetime
SELECT @inputDate = '2008-12-23'
DECLARE...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 31, 2008 at 7:13 pm
Fraggle (10/24/2008)
Alright, now that I have had a little time to ponder the imponderable as my dad would say, I figured out how to add X number of business days...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 31, 2008 at 7:03 pm
paulhunter (12/31/2008)
Jeff Moden
Nope... haven't written one on dates, yet. Wrote one on how to do dynamic crosstabs using dates, but not one just on dates.
Robyn Page wrote a...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 31, 2008 at 6:07 pm
RBarryYoung (12/31/2008)
Huh. and here I always use 121.
But not for trying to find a whole date...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 31, 2008 at 5:59 pm
Michael Valentine Jones (12/31/2008)
where Convert(varchar, CreationDate, 101) between Convert(datetime,@FromDate, 101) And Convert(datetime, @ToDate, 101)
which can amount to something like this:
where '12/30/2008' between '12/25/2008' And...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 31, 2008 at 4:13 pm
Ninja's_RGR'us (12/31/2008)
Hey Jeff, that's a great topic for a couple of articles... can't wait to read those!
Actually, that's not a bad idea, Remi... there's a lot of people, especially new...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 31, 2008 at 4:08 pm
RBarryYoung (12/31/2008)
The irony of course is that if SUM(..) OVER(..) allowed ORDER BY, 2/3rds of the uses for it (the Update pseudo-cursor) would disappear.
Heh... how very true... and that's the...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 31, 2008 at 4:02 pm
This is why we warned you that you shouldn't mess with systems table data directly... but if you insist on taking a chance especially without doing the necessary research (as...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 31, 2008 at 3:57 pm
Heh... well, what's the matter? Didn't they follow the "time to market" and the "splash for the cash" paradigm that everyone seems to preach... instead of writing quality code...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 31, 2008 at 3:35 pm
RBarryYoung (12/31/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
December 31, 2008 at 3:30 pm
I was just reading yet another series of droll and longwinded articles on temporal data types consisting mostly of useless history and a whole bunch of rhetorical crap not having...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 31, 2008 at 3:28 pm
RBarryYoung (12/31/2008)
Oh without a doubt:Believing that rows in a table have an order.
As you know, there is one place where it is... UPDATE in the presence of a CLUSTERED...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 31, 2008 at 3:08 pm
Barry, Bob, and sgovoni... you guys have a great new year!
--Jeff Moden
Change is inevitable... Change for the better is not.
December 31, 2008 at 9:25 am
Yep... agreed. And the difference between a pyramid scheme and a legal MLM is a legal MLM actually sells product or tangible services.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 31, 2008 at 9:23 am
Viewing 15 posts - 46,246 through 46,260 (of 59,101 total)