Viewing 15 posts - 106 through 120 (of 186 total)
lmu92 (4/22/2010)
- after loading the PWDPermitConversionData2 table, add a clustered index on PWDPermitConversionDataID.
- after inserting into PWDPermitConversionErrors2, add a clusterd index on PWDPermitConversionDataID,RecordIndicator
- after inserting into...
April 22, 2010 at 12:33 pm
How can the elapsed time be shorter than the CPU time?
April 22, 2010 at 7:38 am
I made most of those changes that you suggested.
Attached are the execution plans.
Here are the timings.
SQL Server Execution Times:
CPU time = 0 ms, elapsed time =...
April 22, 2010 at 6:57 am
Ok, I have everything working now.
Doing the first and second inserts with a subqueries for each statement containing the pivoted rows, it took 2:36 the first try.
I then took the...
April 21, 2010 at 11:49 am
And when I comment those two case statements out and just put 2 @False values for those fields the insert works fine.
Edit: It's getting wierder (is that a word), when...
April 21, 2010 at 8:55 am
Hey Lutz, can you give me a hand with this? I have converted this over to one insert into the errors table for both primary and previous permits, and also...
April 21, 2010 at 8:36 am
Quick question, can you reuse CTE's in 2 separate statements inside a procedure?
April 20, 2010 at 1:26 pm
lmu92 (4/20/2010)
gregory.anderson (4/20/2010)
...
If I read this right, we can go ahead and get rid of both the temp tables that we are using and just use the PermitsInserted table to...
April 20, 2010 at 1:05 pm
lmu92 (4/17/2010)
Therefore, I'd recommend the next step:
If...
April 20, 2010 at 10:09 am
And Congrats to your Bachelor degree, too!!!
BTW Lutz, getting married, not graduating...
April 20, 2010 at 10:01 am
gregory.anderson (4/20/2010)
How does this code block work (the MAX part) when it is going to return a non-integer value for the error mesage?
MAX(CASE WHEN Recordindicator =1...
April 20, 2010 at 9:53 am
Ok, back to the fun...
How does this code block work (the MAX part) when it is going to return a non-integer value for the error mesage?
MAX(CASE WHEN Recordindicator =1 THEN...
April 20, 2010 at 9:22 am
lmu92 (4/17/2010)
I'm using a CTE again. The first one ("cte") is used to pivot the failed ConversionDataID's.
The second CTE ("cte_ri") pivot the inserted ConversionDataID's...
April 20, 2010 at 6:40 am
Hey guys, thanks again for everything. Just to let you know, I haven't read through Lutz's cte version of that last update yet, just read the first part of the...
April 17, 2010 at 9:45 am
Lutz, before I read your last post, I updated the Update statement for the previous permits, this will do the successful inserts, as well as the failed inserts all in...
April 16, 2010 at 3:49 pm
Viewing 15 posts - 106 through 120 (of 186 total)