Troubleshoot SQL Server 2005 temporary table performance problems

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?

    Requires Free Membership to View

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

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.