Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

DATABASE SLOW Expand / Collapse
Author
Message
Posted Wednesday, July 3, 2013 2:38 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, January 6, 2014 1:02 AM
Points: 15, Visits: 56
Hie,
can any one help me what are the steps to b take when database is running slow?
Post #1469907
Posted Wednesday, July 3, 2013 3:17 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, September 18, 2013 4:14 AM
Points: 38, Visits: 198
There are many reasons why your Db might be slow.,
chcek if there is any long running transaction using DBCC OPENTRAN ('DBNAME') , if u r DBA get ur dev and ask him about this transaction and if it all it can be kill, kill the transaction else wait for its course to complete , check your network latency, u r temp db , if mirroring is transactional u need t ocehck ur mirroring status,
Post #1469930
Posted Wednesday, July 3, 2013 3:30 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 9:50 AM
Points: 5,369, Visits: 9,913
Is this an interview question, by any chance? What research have you done?

John
Post #1469942
Posted Wednesday, July 3, 2013 6:04 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Yesterday @ 8:14 PM
Points: 37,107, Visits: 31,665
rajluves (7/3/2013)
Hie,
can any one help me what are the steps to b take when database is running slow?


This is a huge subject and runs the full gambit from which hardware and operating system are installed, whether or not VM is being used or not, how SQL Server was installed and what settings it has been setup with, how the hard-disks have been formatted and partitioned, how the databases has been setup for growth, how the tables are designed, how the indexes are designed, how the queries are written, how DB maintenance is done, etc, etc, etc and even includes the number of sun spots and the position of the moon.

My recommendation is to take Step 1 and get some training if you're going to do the job of a DBA. If that's out of the question, consult with my personal "Assistant DBA"... His name is "Google". Tell him you want information on "steps to take when DB running slow". In the process, you'll also learn, which takes us back to Step 1.


--Jeff Moden
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #1470270
Posted Wednesday, July 3, 2013 6:15 PM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Today @ 2:04 PM
Points: 3,667, Visits: 8,008
You might want to take a look at this book if you're going to take care of the database
Troubleshooting SQL Server: A Guide for the Accidental DBA



Luis C.
Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

Forum Etiquette: How to post data/code on a forum to get the best help
Post #1470271
Posted Saturday, July 6, 2013 9:38 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, September 10, 2014 8:37 AM
Points: 115, Visits: 235
Generally it is because of Blocking, space issues, IO issues, Index maintenance (Fragmentation), Update stats,High CPU Usage, High Memory Usage.
Check the execution plan of the query and confirm whether it is using table scan or index scan
Check the missing indexes
If table scan is followed suggest them to create necessary indexes.
Check for number of joins used in query and eliminate un necessary joins
Check for fragmentation and fix it if exists


Thanks,
I’m nobody but still I’m somebody to someone………….
Post #1470961
Posted Monday, July 8, 2013 7:27 AM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Tuesday, September 16, 2014 8:29 AM
Points: 337, Visits: 303
I have the perfect answer for your question as you asked it.
Find a DBA and have them look at it.

Your question and the way it was asked is like asking
"I feel sick what should I do?" to a medical forum.

If you are sick and you have no clue seek a doctor.

If your Database is sick and you no clue seek a DBA.

Post #1471183
Posted Monday, July 8, 2013 7:41 AM


SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Monday, September 15, 2014 3:08 PM
Points: 440, Visits: 595
Please define what you mean by "slow". What are the exact symptoms? What is the db doing that it doesn't normally do? What troubleshooting have you done so far?
Post #1471194
Posted Tuesday, July 9, 2013 8:32 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, November 6, 2013 10:00 AM
Points: 102, Visits: 10
ahperez (7/8/2013)
Please define what you mean by "slow". What are the exact symptoms? What is the db doing that it doesn't normally do? What troubleshooting have you done so far?



Agree with this statement... What is running slow? Is it a insert? A certain stored procedure? First step is to find out what is running slow then if you don't know what sql is being run I would run the sql profiler and see what statements are being run and which ones are slow... Then look at the code and see what can be done to make it run faster. May need to look at the server also... Is it a vm, does it have slow disks, low memory, when was sql last restarted. Lots of variables to look at with out more information...
Post #1471655
Posted Thursday, July 11, 2013 11:43 AM


SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Tuesday, June 17, 2014 10:17 AM
Points: 31, Visits: 278
Have you tried rebooting?
Post #1472727
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse