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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 query tuning
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic
Aged Yak Warrior

549 Posts

Posted - 05/07/2013 :  02:04:42  Show Profile  Reply with Quote
Hi All,

I have a query which joins nearly 21 tables altogether to fetch the required columns.While doing so the temp DB is immediately growing to more than 150 percent than the Db size. I tried to use DTA(database tuning ad visor) didn't suggested any indexes.

I need to run this query,how to troubleshoot.

Gangadhara MS
SQL Developer and DBA

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 05/07/2013 :  03:52:40  Show Profile  Reply with Quote
do you really need to join these 21 tables? If yes, see if you can do required filtering of data from master tables and put them onto temporary tables before you do final join on them.

SQL Server MVP
Go to Top of Page

Flowing Fount of Yak Knowledge

United Kingdom
2179 Posts

Posted - 05/07/2013 :  13:38:10  Show Profile  Visit jackv's Homepage  Reply with Quote
is it data that changes regularly or is it static data? If so , consider different ways of grouping the data and denormalizing

Jack Vamvas
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000