Solved

view time out

Posted on 2012-03-14
1
225 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Server 2008 Std. License Key owner or vendor 4 57
Need help with another query 10 40
Related to SQL Query 5 21
user database (login sql or login windows) 3 31
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

730 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