Viewing 15 posts - 57,301 through 57,315 (of 59,049 total)
Very cool, David... fast as all get out... but try this... obviously, we have to know exactly what the scale of the decimal places is to use it or we...
October 26, 2006 at 5:20 pm
>>But there are cases where a cursor is necessary.
I would agree... BUT, the problem is most people don't really know where that...
October 26, 2006 at 7:18 am
It'll take me a bit to setup some test data and write an example (an I'm going to bed for the night so not happening tonight), but I'm thinking a...
October 25, 2006 at 10:30 pm
John is spot on...
I'll also add that storing text columns in the database is bad for too many reasons to post here. If you must store text that execeeds...
October 25, 2006 at 10:21 pm
Lynn is absolutely correct... for those that can't find the ROUND function in Books Online
here's what the 3rd operand of "1" means...
function
October 25, 2006 at 10:17 pm
As an alternative, check out sp_WHO in Books Online and it's undocumented cousin sp_WHO2.
Also, I haven't check how @@PROCID reacts in a trigger but it might be another simple...
October 25, 2006 at 10:03 pm
Sorry... took a bit more than 10 minutes because of all the demo code I added but here's my suggestion... I used all temp tables so you could play without having...
October 25, 2006 at 9:39 pm
Gimme ten minutes... I'll be right back...
October 25, 2006 at 8:58 pm
One more question... Is it possible to add a single column to the table?
October 25, 2006 at 8:53 pm
Ok... this takes 2 seconds longer (1,000,000 rows in 23 seconds instead of 21)... had to work around the "zero domain" on the LOG10 function to get this to work...
October 25, 2006 at 6:57 pm
There would certainly appear to be a fly in the ointment
... thanks for the catch and sorry for the mistake folks... I'll see...
October 25, 2006 at 5:41 pm
I'm thinking it just might be something else because the following works just fine and without any error...
select datediff( hh, 'May 17 2002 9:53', 'May 18 2002 9:53')
October 25, 2006 at 5:19 pm
Viewing 15 posts - 57,301 through 57,315 (of 59,049 total)