Q

Troubleshoot SQL Server 2005 temporary table performance problems

Learn how to troubleshoot SQL Server 2005 temporary table performance problems when a stored procedure execution time is slower than usual.

We removed the local temporary table inside the stored procedure, and made it into a permanent table. The execution time for this permanent procedure is now a longer process when compared with the local temporary table procedure. Why does this happen?
If other users are using the same table, you may have some locking issues that need to be looked at. I would move the stored procedure back to using temporary tables instead of permanent tables, as temporary tables will be cleaned up automatically when the sessions are closed.
This was last published in March 2008

Dig Deeper on Microsoft SQL Server 2005

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchBusinessAnalytics

SearchDataCenter

SearchDataManagement

SearchAWS

SearchOracle

SearchContentManagement

SearchWindowsServer

Close