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
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 View performance problem
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

144 Posts

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

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:)


Almighty SQL Goddess

38200 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.

Go to Top of Page

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

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