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 2000 Forums
 SQL Server Administration (2000)
 View performance problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rubs_65
Posting Yak Master

144 Posts

Posted - 01/09/2004 :  14:10:57  Show Profile  Reply with Quote
Hi,

We are using both views and indexed views in our application but lately we are seeing that sql server is not using optimized plan for a query that involved view and if i use force order hint or try to use inline view it works fine. I am wondering if someone else also seen this behaviour in application and what method use to avoid such optimal plan except not using views:)

Thanks
--rubs

tkizer
Almighty SQL Goddess

USA
36615 Posts

Posted - 01/09/2004 :  14:43:53  Show Profile  Visit tkizer's Homepage  Reply with Quote
Are your indexes fragmented? To see this, run DBCC SHOWCONTIG. To fix, run DBCC DBREINDEX.

Tara
Go to Top of Page

rubs_65
Posting Yak Master

144 Posts

Posted - 01/09/2004 :  15:12:37  Show Profile  Reply with Quote
1) no indexes are fragmented
2) statistics are run on all tables and indexed views with fullscan

Thanks
--Harvinder
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.09 seconds. Powered By: Snitz Forums 2000