Viewing 13 posts - 46 through 58 (of 58 total)
Jeff, Phil - thanks for confirming my hunch regarding the use of index hints.
Turns out that with some fiddling with indexes, I was able to achieve the same performance improvements...
July 18, 2007 at 5:52 am
I thought the cowboy column was simplistic at best. If the article is saying that companies cannot afford to have experts operating outside of the company procedures, that I...
May 20, 2007 at 6:16 am
Revision. So, I found an invoice table with 3.5 million invoices and discovered the query was taking too long - 11 minutes as of when I killed it.
So, I switched to...
April 26, 2007 at 6:54 am
The query below works well enough and is nice and tight. It takes about 20 seconds on a 250,000 row table on a 2 CPU/4 GB server. That's OK...
April 26, 2007 at 6:23 am
Michael,
Thanks for the observation on the merits of upping the timeout delay. I'll make that change forthwith setting it to something large. In practically every case, the using application will...
April 16, 2007 at 2:26 pm
Epilog:
I ended up using th sp_getapplock to force a serial execution of certain parts of my stored procedure. It seems to help quite a lot although I also modified a...
April 16, 2007 at 1:55 pm
Well, for the moment I am using the SP_GETAPPLOCK approach so that the stored procedure first has to obtain an exclusive session resource before proceeding with the processing. I am...
April 12, 2007 at 8:38 pm
Sergiy, Michael:
All of your answers have been really helpful.
Can you see any advantages of the creation of the global temporary table as opposed to:
EXEC @LastErrorCode = sp_getapplock @Resource = 'HE_EXPLODE',...
April 12, 2007 at 11:32 am
Michael,
That's exactly what I was looking for. Now, I will be using Session versus Transaction locks so I have a couple more questions.
What defines a session and what terminates a...
April 12, 2007 at 6:47 am
John,
Thanks for that suggestion. Actually, right now, I am using "logical locking" by writing a record to a table. The problem is that if the stored procedure fails badly, the...
April 11, 2007 at 4:26 pm
Jeff,
I appreciate your mellow answers. Anyway, I am starting to lean towards SPs as subprograms. It saves me having to fish through a long script no matter how well structured.
August 4, 2006 at 6:05 pm
As a former COBOL programmer, the problems of GOTO have been understood from the beginning.
But, what I found is that a careful use of GOTO is effective. In the main...
August 4, 2006 at 7:15 am
I am familiar with all that has been said in this thread. I was hoping that somebody would tell me there was something akin to PERFORM paragraph-name in COBOL lurking...
August 4, 2006 at 6:19 am
Viewing 13 posts - 46 through 58 (of 58 total)