Viewing 15 posts - 56,266 through 56,280 (of 59,078 total)
Great... thanks for the feedback, Magnus...
May 31, 2007 at 5:47 pm
I created an 8 million row table and have tried all the scenarios you have... I cannot get it to fail in the manner which you speak of. I think...
May 31, 2007 at 5:32 pm
Yes, but not for dynamic SQL...
The error that you are getting is becaue you are using EXEC the wrong way to execute dynamic SQL... you have...
EXECUTE @STR
... and it should be...
EXECUTE...
May 31, 2007 at 5:11 pm
Ah... how rude of me... forgot to post how long my code took... Using SQL Server Developer's Edition (same as Enterprise Edition), sp4, 1.8 Ghz single cpu, 1 Gig RAM,...
May 31, 2007 at 5:03 pm
p.s.
Heh... looks like David and I got our rounding examples from the same source...
http://en.wikipedia.org/wiki/Bankers%27_rounding#Round-to-even_method
May 31, 2007 at 4:51 pm
Heh... I've been all through this on one unbelievably long post before and then I struck gold quite by accident... Unbeknowst to most, the STR function does Banker's rounding "auto-magically"... ...
May 31, 2007 at 4:43 pm
>>Wait..don't tell me both columns are NULLable, too...;-))
Heh... dunno... like I said, they cut off my ability to pry any further... but the way they do things in that particular...
May 31, 2007 at 4:32 pm
Very cool... thanks for sharing!
May 31, 2007 at 4:24 pm
Yes, please post the query... chances are, the criteria in the WHERE clause is what's keeping the index from being used...
May 31, 2007 at 7:15 am
Heh... you DO have a way with words! Good thing I had a DBA with the same type of extremely dry humor you do
May 31, 2007 at 5:51 am
Can't test it, but that's SO easy! Way to go, Peter... can't wait to get my hands on 2k5!
May 31, 2007 at 5:44 am
Haven't tested it but learned a long time ago never to mix aggragation and formatting in a single select...
SELECT d.Cases,d.Status
FROM
(
SELECT
count(r.status_id) As...
May 31, 2007 at 5:23 am
Peter,
Now you know why I asked...
was pretty sure the Order By wouldn't do it...
May 31, 2007 at 5:18 am
Heh... that's funny... but I get what Peter is suggesting with that simple query... pass the data to the client box and let the client box work on the solution. ...
May 31, 2007 at 5:13 am
Will that put it in the order the OP requested?
May 30, 2007 at 11:15 pm
Viewing 15 posts - 56,266 through 56,280 (of 59,078 total)