SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

gangadhara.ms
Aged Yak Warrior

India
541 Posts

Posted - 05/07/2013 :  02:04:42  Show Profile  Visit gangadhara.ms's Homepage  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.

Thanks,
Gangadhara MS
SQL Developer and DBA

visakh16
Very Important crosS Applying yaK Herder

India
52249 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
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

jackv
Flowing Fount of Yak Knowledge

United Kingdom
1908 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
--------------------
http://www.sqlserver-dba.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.05 seconds. Powered By: Snitz Forums 2000