Viewing 15 posts - 16 through 30 (of 73 total)
All;
I have uploaded the requested query plans.
A few notes:
- the database in the case is the same database - this is contrary to the example I gave in my first...
August 14, 2015 at 9:12 am
All;
Thank you for all your responses. As most of you alluded to, I went down the path of checking out the query plans and the indexes.
After ensuring that both...
August 14, 2015 at 8:11 am
That is what I thought -- is there a good chance this will resolve the deadlock?
Tony
July 26, 2011 at 11:00 am
WayneS (6/8/2011)
tfeuz (6/8/2011)
LOL - you missed the constraint on Rb_Ruleid again -- I added it back in:
Just making sure you're looking at the code as a sanity check! :w00t:
Does this...
June 8, 2011 at 12:16 pm
WayneS (6/8/2011)
Starting over. The main (not single) procedure is totally rewritten to combine the TVF with it. If this works, we'll combine the TVF into the single procedure also.
Start off...
June 8, 2011 at 11:09 am
WayneS (6/7/2011)
Tony:Is RB_InvoicesToProcess 1:1 with Invoices?
Is RB_InvoicesToProcess_Moved 1:1 with Invoices?
Just to verify, you can have the same invoice in both of those tables?
RB_InvoicesToProcess 1:1 with Invoices but you have...
June 8, 2011 at 4:36 am
WayneS (6/7/2011)
tfeuz (6/7/2011)
I had to make a fix to the code -- you did not constrain by the rule id when you create the temp table -- it caused duplicate...
June 8, 2011 at 4:34 am
Wayne,
I had to make a fix to the code -- you did not constrain by the rule id when you create the temp table -- it caused duplicate values...
Note the...
June 7, 2011 at 7:30 pm
I'm trying to redo the iTVF, and I have a few questions:
1. For any Invoice.InvoiceId value, will there be one and only one row in InvoiceTotal for that InvoiceId?
** Correct...
June 7, 2011 at 12:54 pm
Wayne,
Here you go...this has the latest "isnull" change..sqlpplan is attached..
SQL Server parse and compile time:
CPU time = 0 ms, elapsed time = 0 ms.
SQL Server...
June 7, 2011 at 8:52 am
Wayne,
Check out my last post --- the "main" proc is slightly different as it has a case statement in the insert to trap for null values...i found that just this...
June 6, 2011 at 3:39 pm
Darn --
Here you go
Statistics:
SQL Server parse and compile time:
CPU time = 0 ms, elapsed time = 0 ms.
SQL Server Execution Times:
CPU...
June 6, 2011 at 3:20 pm
As requested....
Stats
SQL Server parse and compile time:
CPU time = 0 ms, elapsed time = 0 ms.
SQL Server parse and compile time:
CPU time...
June 6, 2011 at 2:57 pm
Here is the slower one (although they all seem to be running about same now)
CREATE PROCEDURE spCalculateRuleInvoiceUnits @RuleUnitType numeric(9,2),@TermsRuleType numeric(9,2),@RuleId decimal(18,0)
AS
DECLARE @Col2Use sysname,
...
June 6, 2011 at 12:07 pm
Wayne,
Just saw your last post ---
Here are the attached plans and the sql output...
InvoiceKeyFirst:
SQL Server parse and compile time:
CPU time = 0 ms, elapsed time...
June 6, 2011 at 11:48 am
Viewing 15 posts - 16 through 30 (of 73 total)