Viewing 15 posts - 43,486 through 43,500 (of 59,063 total)
Steve Jones - Editor (6/9/2009)
The formatting is fixed, or should be. Please let me know if it is still messed up.
That's GREAT! Heh... you know I'll be testing the...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 9, 2009 at 9:40 am
woolfson (6/9/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
June 9, 2009 at 9:39 am
Here's a simple test for the floating point stuff. Works fine, fails safe, and drains to the bilge. 😛
[font="Courier New"] SELECT STR(FLOOR(d.N*100)/100,4,2), COUNT(*)
FROM (
SELECT TOP 1000000
RAND(CHECKSUM(NEWID())) * 5 AS N
FROM Master.dbo.SysColumns sc1
CROSS JOIN Master.dbo.SysColumns sc2
)d
GROUP BY STR(FLOOR(d.N*100)/100,4,2)
ORDER BY STR(FLOOR(d.N*100)/100,4,2)[/font]
--Jeff Moden
Change is inevitable... Change for the better is not.
June 9, 2009 at 9:15 am
Jeff Moden (6/9/2009)
vzurkowski (6/9/2009)
Assuming T-SQL...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 9, 2009 at 9:06 am
vzurkowski (6/9/2009)
Assuming T-SQL RAND() has...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 9, 2009 at 8:53 am
Peso (6/9/2009)
And it's also well established thatABS(CHECKSUM(NEWID())) % 100
gives random numbers between 0 and 99 with very high, good and even distribution.
I used to do the coversion using Varbinary and...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 9, 2009 at 8:50 am
charles.flock (6/9/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
June 9, 2009 at 8:45 am
Steve... I'm not sure what's happened, but this article is all but unreadable. Might look fine from Firefox, but IE8 is having a heck of a time with it.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 9, 2009 at 12:06 am
Paul M. Corley (6/8/2009)
Also remember that a true fiscal year does not start on the same day every year.
Heh... "it depends".
--Jeff Moden
Change is inevitable... Change for the better is not.
June 9, 2009 at 12:01 am
Eralper (6/8/2009)
Thanks for your warning 🙂
My main consideration at that function is not the performance in fact.
I just wanted to see if Recursive CTE can manage splitting string values.
In...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 8, 2009 at 11:56 pm
kokfai.lai (6/8/2009)
Sorry for my stupidity for not reading the rules and regulation 1st b4 posting. I'll take a look at it when i have time. As you can see...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 8, 2009 at 11:23 pm
Steve Jones - Editor (6/8/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
June 8, 2009 at 11:14 pm
mmunson (6/8/2009)
Service Employee Group | Serv Order ID | Conf ID
T - CSAEZR7 Region 7 - Field30000000089000000933
T - CSAEZR7 Region 7 - Field30000000089000002367
T...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 8, 2009 at 11:06 pm
ganeshlohani,
Part of the reason that you only got suggestions instead of code is because you didn't post your problem correctly so that people had some readily consumable data to test...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 8, 2009 at 10:58 pm
{edit} Thanks to David Jackson. I was missing the WHERE clause in the final dynamic SQL and the caused the totals at the right of the output to...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 8, 2009 at 10:55 pm
Viewing 15 posts - 43,486 through 43,500 (of 59,063 total)