[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

MS SQL Query Loading/Timeout Question

Posted on 2014-03-10
2
Medium Priority
?
974 Views
Last Modified: 2014-03-11
We have a database that holds some sales records in it, and we recently changed from MS SQL Server 2008 to MS SQL Server 2012.

We noticed every morning we get a "timeout" error in our software when it's loading the Sales Order info for the first time in the day.

I then did a query for the entire table in MS SQL Server Management Studio on the server holding the DB and it took about 3 minutes to return all of the data.

After this query - the program running on the network runs fine and has no "timeout" issues - we are then fine to run the program the rest of the day without any issues...but then if we don't run the query in the morning the next day it give the timeout error again.

This DB is important but not critical, so we won't spend a ton of time on this issue, but if anybody has a quick fix that can suggest so we don't need to run that query in the morning that would be excellent.

Thanks
0
Comment
Question by:ProdigyOne2k
[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
2 Comments
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 1500 total points
ID: 39919463
I will go out on a limb and suggest that you have never updated your stats and perhaps have never re-indexed your tables.
0
 

Author Closing Comment

by:ProdigyOne2k
ID: 39920555
Anthony's answer helped, but the other issue was that the DB was on an SSD previously, and this time put on a 5400RPM HDD.  It is now loaded on an SSD and takes seconds to load.
Thanks
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.

656 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