Viewing 15 posts - 181 through 195 (of 1,473 total)
CirquedeSQLeil (4/7/2010)
TheSQLGuru (4/7/2010)
Paul White NZ (4/7/2010)
TheSQLGuru (4/7/2010)
BAH!! I don't need no stinkin' TESTS!! I KNOW my code will run faster than my client's did!!! :w00t: 😀 😎Superb.
And...
April 7, 2010 at 10:24 pm
Steve Jones - Editor (4/7/2010)
Rob Schripsema (4/7/2010)
April 7, 2010 at 10:20 pm
Wait... Parties?
WHY WAS I NOT TOLD OF THIS. I LOVE PARTIES. :crazy:
Well, Ok. Actually I just love beer... but you know what you normally have at...
April 7, 2010 at 8:52 pm
See if this will work for you.
http://phelabaum.com/archive/2010/02/tally-table-delimited-list-to-table/
Edit: Sorry, just read that a bit closer, my function might be too hard to adapt.
April 7, 2010 at 8:36 pm
The last time I got an invalid namespace error was when I was trying to install a 32 bit app on a 64 bit machine. May not apply, but...
April 7, 2010 at 8:31 pm
RBarryYoung (4/7/2010)
You probably need it to be an inline-TVF.
That's what my thought was as well, at least to cover the difference in 4s vs. 690ms. I'd heard that they...
April 7, 2010 at 8:28 pm
Any chance you had the Actual Plan on when you were testing? I show the scalar as the fastest, but without the plan on none of them are that...
April 7, 2010 at 7:53 pm
Most of the backups I've seen have had somewhere between 50-80% size reduction. That's just ballpark possible numbers though, as Jeff said, it depends on the Data.
The live data......
April 7, 2010 at 7:30 pm
Thanks.
Nothing like actually having an article published that lets you see all the things that you forgot to add to it! :hehe:
April 7, 2010 at 7:25 pm
This would make a great TSQL Challenge. I've been going around in circles for a couple hours now trying to figure out a way to do this in a...
April 7, 2010 at 7:22 pm
You can also move the IF up a line to be before the insert statement. You'll need to add the insert again just below your else.
IE:
IF...
insert...
select...
else...
insert...
select...
That said, there's a...
April 7, 2010 at 4:02 pm
This is probably not the reason, but I've never been able to find an answer as to *which* sql handle you really need to be grabbing. (There are often...
April 7, 2010 at 3:53 pm
Elaine Shafer-401422 (4/7/2010)
Interestingly, rounding happens near midnight. The following returns '2010-04-08 00:00:00.000':
DECLARE @Date DATETIME = '2010-04-07 23:59:59.999'
SELECT CAST(FLOOR(CAST(@Date AS...
April 7, 2010 at 11:26 am
ArkWare (4/7/2010)
very nice. good explaination.
I have one question...
in the following code, isn't it returning the first of the week +/- 2 days?
SELECT DATEADD(wk, DATEDIFF(wk,0,GETDATE()), 2)
--: 2010-03-01 00:00:00.000 Start of...
April 7, 2010 at 7:56 am
ArkWare (4/7/2010)
mbarkell (4/7/2010)
April 7, 2010 at 7:51 am
Viewing 15 posts - 181 through 195 (of 1,473 total)