Solved

Query timeout on SQL server suddenly appearing

Posted on 2011-09-08
6
465 Views
Last Modified: 2012-05-12
I have an installation with two Dbs which should be identical in structure on the same SQL Server running two different companies. One of these is significantly larger than the other.

On the smaller of the two timeout errers have started to appear on queries which return results instantly to the users of the  other Db which has about 4 times the number of rows in each table.

Something is wrong but I don't know where to begin. I have tried copying the query to a file and running the tuning advisor but it comes up with Error Unable to open input file on the Consuming Workload section.

Any ideas?
0
Comment
Question by:grwallace
  • 3
  • 2
6 Comments
 
LVL 7

Expert Comment

by:celazkon
ID: 36501687
Don't forget to create an index on the tables involved in the timing-out query. This will greatly enhance performance of the sql query
0
 

Accepted Solution

by:
grwallace earned 0 total points
ID: 36501728
An index already exists for the query - I a concerned that there is data corruption or something of that nature
0
 

Author Closing Comment

by:grwallace
ID: 36527877
No relevant answers
Grad C as nothing satisfactory
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 39

Expert Comment

by:lcohan
ID: 36505682
indexes and statistics are not self maintained so sometimes you need to do a rebuild index and see SQL BOL for that or simply run:

update statistics table_name;
exec sp_recompile table_name;

to refresh stats and flush out of cache all old plans tied to the table_name.
0
 

Author Comment

by:grwallace
ID: 36506121
I had to raise a call to Microsoft to fix this one at a cost of £199. It is now solved with their help.The problem was due to due to a process locking out my query. Unfortunately there were no comments which were helpful of pointed me in that direction from Experts Exchange
0
 
LVL 39

Expert Comment

by:lcohan
ID: 36506196
that was costly and for the future keep in mind - SQL Activity Monitor and SP_WHO2  or SP_WHO stored proicedures can reveal that at no cost to you.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

912 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

19 Experts available now in Live!

Get 1:1 Help Now