Solved

Query timeout on SQL server suddenly appearing

Posted on 2011-09-08
6
461 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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
TSQL - Rollup data set 7 29
SQL Query Syntax Error 9 34
Write a function 5 25
Counting Distinct values in two columns 3 15
Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

760 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

18 Experts available now in Live!

Get 1:1 Help Now