Viewing 15 posts - 46,471 through 46,485 (of 59,095 total)
In most cases, yeah...
In that case, I dunno what the original problem was.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 3:16 pm
Perry Whittle (12/22/2008)
Jeff Moden (12/22/2008)
Thanks for the kudo, J. :blush:better than a pork chop 😀
Heh... ya know? And doesn't the word "kudo" sound cool? Sounds like the name...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 3:14 pm
J (12/22/2008)
Now, where is that article on the pitfalls of CLR? Eh?
Here's the problem with that... long before the move to the new forum on SSC, Matt Miller and I...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 3:10 pm
Steve Jones - Editor (12/22/2008)
I knew Jeff would have something!
Heh... Thanks, Steve. I'm just surprised because it's such an old trick and it's posted everywhere. You would think...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 2:53 pm
Jonathan Kehayias (12/22/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 2:46 pm
Nah... you just got bit by the rounding with integers... try this...
DECLARE @StartDate DATETIME,
@EndDate DATETIME,
...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 2:12 pm
Kit Brandner (12/22/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 1:32 pm
Steve Jones - Editor (12/22/2008)
And I'd like to see you try.I wonder how generating pin codes would be faster procedurally? Is it some randomness being introduced somehow?
Straight-up numeric pin...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 1:21 pm
Thanks for the kudo, J. :blush:
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 1:03 pm
Wait a minute! What are you calling a duplicate!? You mean to tell me that no other username can make an entry on that date for that sLevel?
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 12:57 pm
The reason it takes so long is because you've not aggregated the data. Please see the following for how to do a proper cross tab...
[font="Arial Black"]http://www.sqlservercentral.com/articles/T-SQL/63681/[/font][/url]
Without some actual test...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 12:48 pm
In the previous post, you wrote ...
The select works to get me the counts. And the idea of the Tally table does make the selects more simplistic. I...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 12:41 pm
Comparing that to the original, it looks like all you were missing was the FROM clause.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 12:27 pm
Kit Brandner (12/22/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 12:24 pm
Can you post what you ended up with, please? Thanks.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 22, 2008 at 10:38 am
Viewing 15 posts - 46,471 through 46,485 (of 59,095 total)