Viewing 15 posts - 5,461 through 5,475 (of 59,089 total)
How do I integrate your
CROSS APPLY dbo.itvfGetSeconds(Call_Time) ctsec CROSS APPLY dbo.itvfGetSeconds(Talk_Time) ttsec
code with the needed code below?:
FROM a2wh.dbo.CallLogCommon com with (NOLOCK)
JOIN a2wh.dbo.Campaigns ud with (NOLOCK)
ON com.[campaign]...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 30, 2021 at 3:23 pm
Another thing is, what is the allowable latency for the data? Does it actually have to be up-to-the-second accurate or is it something that you can download once overnight and...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 30, 2021 at 1:29 pm
Thanks for the observations you made on this, Pete. It might be worthy of a new "Feedback" item as a "bug".
And, yeah... I can see people doing this... there have...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 30, 2021 at 1:25 pm
I agree. Validating dates and times from possibly free-form sources is a real pita, especially in the presence of only "implied" specs. The OP never stated if the inputs always...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 30, 2021 at 1:03 pm
The problem is, that's not a function. That's a script. Convert it to a function while I'm writing a similar one. 😀
And you seem to be saying that 'SELECT *...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 30, 2021 at 3:53 am
Ok... the premise of this thread is that we want to use "Better Practices". 😀 We not only want good code, but we want it to be simple and a...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 30, 2021 at 2:39 am
Dave,
I'm a bit confused by the functionality you express in your code. You're subtracting Talk_Time from the Call_Time. Perhaps things have changed a bit but, IIRC, Talk_Time is the duration...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 29, 2021 at 9:42 pm
Judging by the way it's being used, the dbo.fnGetSeconds function appears to be a scalar function. That's really not a good thing. If you would post the complete code for...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 29, 2021 at 5:50 pm
Let us know how that PR works out, George. I've got a bunch of places where I found errors, need better examples, or is missing information. I've frequently been seriously...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 29, 2021 at 4:51 pm
I still concern myself with such things because it doesn't make sense to use something that's known to be slower when there's something easy you can do to avoid the...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 29, 2021 at 4:43 pm
Don't worry about ms, just use seconds. A few ms diff could be caused by almost anything is and not significant for an SSIS package.
I have to strongly disagree...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 29, 2021 at 5:17 am
As a bit of a sidebar, Sergiy posted while I was working on mine. That's about the same kind of simplicity that I built into mine because you can, as...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 29, 2021 at 3:32 am
Thought I'd toss my hat into the ring. Details are where they should be... in the code. 😀 It also tolerates leading, embedded, and trailing spaces, which is a frequent...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 29, 2021 at 2:56 am
There are several methods for doing this. Steve Collins has correctly identified what most people identify as the "Best Method" and it frequently is.
There are 3 methods that I'll try...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 28, 2021 at 9:44 pm
Please see the following article for calculating durations. It's really simple to do when you understand the hidden powers of the DATETIME datatype. Heh... you may never use DATEDIFF() to...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 28, 2021 at 6:35 pm
Viewing 15 posts - 5,461 through 5,475 (of 59,089 total)