Viewing 15 posts - 21,676 through 21,690 (of 59,072 total)
farooq.hbs (1/23/2015)
[font="Arial Black"]How to retrieve only Monday dates from each month in sql server.
[/font]If i pass any value (Let say GETDATE()) then i should get all monday values from the...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 27, 2015 at 7:19 pm
ChrisM@Work (1/27/2015)
Gosh :blush: thanks Koen! I like what Jeff's done with it.
All I did was tweak it. It was your idea and it was (IS) a hell of a...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 27, 2015 at 6:43 pm
Good stuff, Sean & Jen. Thanks for taking the time to hammer that out for us.
--Jeff Moden
Change is inevitable... Change for the better is not.
January 27, 2015 at 3:54 pm
Sorry about the SLA question. I know it's for free and didn't check things out to see if there was a paid support option. It's one of those...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 27, 2015 at 12:07 pm
ScottPletcher (1/27/2015)
Jeff Moden (1/26/2015)
ScottPletcher (1/26/2015)
dwain.c (1/25/2015)
coalesce(a.processStatus, 0) = 0
is not SARGable, so that could be improved on by making the processStatus column NOT NULL.
It's much better to code it...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 27, 2015 at 9:22 am
David Burrows (1/26/2015)
Please clarify
You are auditing 'what was' and not 'what is'
'Insert' is the first audit row or the main row if no audit exists
and this needs...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 27, 2015 at 6:59 am
What will it hurt if something IS entered into the column and can it wait? If so, save yourself some pain and just run a job on a scheduled...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2015 at 11:56 pm
Nice write-up, nice product. I haven't done a deep dive on the code but I have some questions. Maybe Sean can incorporate some of these if they don't...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2015 at 11:46 pm
Rahuul (1/26/2015)
On another note for the sake curiosity,
What would be your recommendation had it been a Standard OR Enterprise version of SQL Server (not Azure)?...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2015 at 11:01 pm
ScottPletcher (1/26/2015)
dwain.c (1/25/2015)
coalesce(a.processStatus, 0) = 0
is not SARGable, so that could be improved on by making the processStatus column NOT NULL.
It's much better to code it as:
(a.processStatus is null...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2015 at 10:43 pm
Details are in the code...
--===== Conditionally drop the working table to make reruns in SSMS easier
IF OBJECT_ID('tempdb..#QU','U') IS NOT NULL
...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2015 at 10:13 pm
I don't do links for two reasons... 1) is that I don't actually know what's there and don't want to take the chance going there and 2) is that link...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2015 at 5:43 pm
Rahuul (1/26/2015)
Thanks Jeff.The article was informative.
Per your advice, we'll go ahead and combine these tables with Partition Views.
Thanks a lot,
Rahul
Not quite what I recommended for Azure, if that's...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2015 at 9:34 am
Something is going on here. Using your test data and your code as you posted it, the code runs in 23 seconds. Is it this test code that...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 25, 2015 at 1:06 pm
It's not exactly what you asked for but I have a couple of suggestions on this.
First, this is a "hierarchical" problem but the data you have doesn't exactly support a...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 25, 2015 at 11:43 am
Viewing 15 posts - 21,676 through 21,690 (of 59,072 total)