Viewing 15 posts - 21,706 through 21,720 (of 59,098 total)
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
First, thank you for taking the time to build the test data. That will really help.
It would be helpful if, instead of trying to figure out what the overall...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 25, 2015 at 10:30 am
kd11 (1/25/2015)
ManagerName EmployeeName HoursWork
John...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 25, 2015 at 10:13 am
You bet and thank you for the great questions and feedback throughout this thread. Let us know how it all works out when you get the chance.
--Jeff Moden
Change is inevitable... Change for the better is not.
January 25, 2015 at 9:39 am
k.allen.emt (1/24/2015)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 24, 2015 at 9:29 pm
Viewing 15 posts - 21,706 through 21,720 (of 59,098 total)