Home > Ask the SQL Server Experts > Denny Cherry - Performance Tuning Questions & Answers > Troubleshoot SQL Server 2005 temporary table performance problems
Ask The SQL Server Expert: Questions & Answers
EMAIL THIS

Troubleshoot SQL Server 2005 temporary table performance problems

Denny Cherry EXPERT RESPONSE FROM: Denny Cherry

Pose a Question
Other SQL Server Categories
Meet all SQL Server Experts
Become an Expert for this site


Expert advice on database development
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


>
QUESTION POSED ON: 11 March 2008
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?

>
EXPERT RESPONSE
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.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
SQL Server stored procedures
SQL Server source code analysis and management adds database security
SQL and SQL Server Tutorial and Reference Guide
Configure SQL Server Service Broker for sending stored procedure data
Find size of SQL Server tables and other objects with stored procedure
Track changes to SQL Server 2000 and 2005 with one simple utility
Use SQL Profiler to find long running stored procedures and commands
Stored procedure to monitor long-running jobs in SQL Server 2000
Using BULK INSERT to insert rows from SQL Server dataset to table
SQL Server query to import database names
How can I export stored procedures in SQL Server 2005?

SQL Server performance and tuning
SQL Server PerfMon counters for access methods and buffer manager
Find size of SQL Server tables and other objects with stored procedure
Monitor SQL Server disk I/O with PerfMon counters
SQL Server tempdb best practices increase performance
SQL Server PerfMon counters for Windows operating system (OS)
How to maintain SQL Server indexes for query optimization
Performance tuning for SQL Server 2005 and Exchange running on SBS
Use SQL Profiler to find long running stored procedures and commands
Maintain large SQL Server database and resolve website 'Timeout Error'
SQL Server PerfMon counters for tracking Windows memory

SQL Server 2005 (Yukon)
Create DDL table in SQL Server 2005 to audit DDL trigger activity
How to process SQL Server 2005 Analysis Services for data availability
Configure SQL Server Service Broker for sending stored procedure data
SQL Server 2005 log shipping setup using the wizard
Retrieve XML data values with XQuery in SQL Server 2005
Export SQL Server data to an Excel file using SSIS and Visual Studio
SQL Server tools don't appear in menu after SQL Server 2005 install
Performance tuning for SQL Server 2005 and Exchange running on SBS
Five steps to event handlers in SQL Server Integration Services (SSIS)
Create an upgrade plan for your move to SQL Server 2005
SQL Server 2005 (Yukon) Research

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
library  (SearchSQLServer.com)
trigger  (SearchSQLServer.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsWebcastsWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2005 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts