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 first published in March 2008
This Content Component encountered an error

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

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.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchBusinessAnalytics

SearchDataCenter

SearchDataManagement

SearchAWS

SearchOracle

SearchContentManagement

SearchWindowsServer

Close