Solved

view time out

Posted on 2012-03-14
1
222 Views
Last Modified: 2012-03-14
hi

I have a view that is timing out, i think it because of the fact it joins to 5 other views to get the results...is there a simple way i can speed it up?
0
Comment
Question by:ac_davis2002
1 Comment
 
LVL 25

Accepted Solution

by:
jogos earned 500 total points
ID: 37719742
<<.is there a simple way i can speed it up?>>
Tune each view
If possible even look if there are overlaps in the views so a rewrite of the functionality of 2 views in one select could be more efficient.
Why a view now? Could it be a stored procedure (with or without parameters)?
Look for missing indexes or columns that can be included in an index to become a covered index.

Start at looking at the estimated execution plan, see some links
http://www.codeproject.com/Articles/9990/SQL-Tuning-Tutorial-Understanding-a-Database-Execu
http://msdn.microsoft.com/en-us/library/ms188722.aspx
http://msdn.microsoft.com/en-us/library/cc645887.aspx
http://sqlserverpedia.com/wiki/Examining_Query_Execution_Plans
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now