Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Using Temporary Table in Procedures

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-12-14 : 07:42:49
kumaresan writes "In my procedure ,i am selecting records from three tables.performance of this procedure is too slow.my question is how to use temporary table in procedure,to slove this problem?"

Kristen
Test

22859 Posts

Posted - 2005-12-14 : 07:49:52
Hi kumaresan, Welcome to SQL Team!

Please post the DDL of your tables, (and preferably a few INSERT statements for some Test Data) and the query.

The query probably just needs optimising - rather than trying to use temporary tables.

Kristen
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-12-14 : 08:01:55
You need to use Proper indices and proper JOINs
Post additional informations as asked

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -