Viewing 15 posts - 22,231 through 22,245 (of 59,072 total)
JKSQL (12/9/2014)
The stored procedure filled a temp table with the parent objects. If the particular...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 9, 2014 at 3:52 pm
Ed Wagner (12/9/2014)
Jeff doesn't hit people with RBAR, he actively campaigns against it. High-velocity pork chops, on the other hand, are fair game. 😀
Hmmmm... maybe butterfly stuffing the pork...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 9, 2014 at 2:06 pm
jshahan (12/9/2014)
The code exploits what many consider to be a "fault" of the date/time data-types. If you present the functions with a 4 character number, T-SQL will treat it as...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 9, 2014 at 2:04 pm
Ok, here we go.
First, we need a couple of functions to make our lives easier. This first one is a modification of the DelimitedSplit8K function that I've been working...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 8, 2014 at 11:38 pm
Got it. Working on it.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 8, 2014 at 9:53 pm
Yes. I'm curious though... why isn't the full path a file name contained in the table? Without esoteric controls, you wouldn't be able to work your way back...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 8, 2014 at 7:59 pm
This would be super simple to do if you were allowed to use xp_CmdShell. Can we do that or do we need to avoid it?
--Jeff Moden
Change is inevitable... Change for the better is not.
December 8, 2014 at 7:36 pm
Can we see that separate code that works for one image, please?
--Jeff Moden
Change is inevitable... Change for the better is not.
December 8, 2014 at 6:47 pm
PearlJammer1 (12/8/2014)
This is a question from a high level view about the possibility of removing a cursor from some of our tsql code.
Basically the steps are:
We create a temporary...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 8, 2014 at 6:34 pm
Eirikur Eiriksson (12/8/2014)
Quick joke, 36524 is the number of versions Jeff needs to upgrade on his old test box 😀😎
Heh... better joke... that's the number of times I've heard that...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 8, 2014 at 4:46 pm
jshahan (12/8/2014)
select CAST(RAND(CHECKSUM(NEWID()))*3653.0+36524.0 AS DATETIME)
Not difficult to see WHAT is happening but WHY are these particular constant...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 8, 2014 at 4:44 pm
You still need to find out about RPO, RTO, and what the Restore Plan is, though. While 380GB isn't a "HUGE" database, it can take a fair amount of...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 8, 2014 at 10:24 am
mike 57299 (12/7/2014)
Facts:
Full recovery model
Mirrored to 2nd SQL server
full backup taken every morning...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 7, 2014 at 2:02 pm
This should do it and it will be SARGable...
--===== These would be parameters for a stored procedure.
DECLARE @pStartMonthDate DATETIME --Can be any date in the starting month
...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 7, 2014 at 1:37 pm
Eirikur Eiriksson (12/7/2014)
Quick suggestion😎
SELECTPT.idx
,PT.paymentDte
,PT.officialReceiptNo
,PT.sysReceiptNo
FROM dbo.paymentTrnx PT
WHERE (YEAR(PT.paymentDte) * 100) + MONTH(PT.paymentDte) BETWEEN 201201 AND 201203;
Careful...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 7, 2014 at 1:15 pm
Viewing 15 posts - 22,231 through 22,245 (of 59,072 total)