SQL Server Performance Tuning


SQL Server Performance Tuning for SQL Server 2005, 2008, 2008 R2,2012

Blogs

Main DB checks for DBA

Posted by Shehap El-Nagar on March 11, 2012 at 11:55 PM

It is daily question for any DBA or DB analyst what shall you do when App Support or end users forward to you any .net timeout or .net error that contains almost SQL vocabularies and you want to know if it is relevant or irrelevant to DB side….?

Here basically, you could have a main checklist of DB checks that it could be helpful for you while any DB investigation:

1. Check all locks /Deadlocks by the same time slot of .net timeout /.net errors

2. Check all expensive queries by the same time slot (Follow up my article for this regard http://www.sqlserverpath.org/blog/page/3/ )

3. Check all failed logins took place by the same time slot (Using Server Audit of 2008 better to check Network error codes as well)

4. Check all different types of overload on the 4 HW resources :

· IO Subsystem (Local /SAN storage )

· CPU

· Network

· Memory

5. If something found , you have to identify its reason which might be of 3 probable assumptions basically :

· Expensive Queries of end users

· SQL Server activities like rebuild indexes , check integrity ….etc

· Activities of other third party tools like Antivirus or backup tools…etc (Could be figured out using UCP monitor of 2008 R2)

6. Check DB files & storage capacity using UCP monitor of 2008 R2

7. Check SQL Server log for any strange incident

8. Check DTC accessibility between APP +DB Servers in case of that SQL Service depends on DTC Service for OLTP transactions.

9. Check event viewer of DB servers to find out any strange incidents that could correlate with these timeouts

10. Run profiler to trace specific events if some problem is frequently repeated at specific times.

If nothing, so it has nothing to do with DB end and APP support has to figure out relevant incidents from other layers like .net , network ..etc

Kindly Please let me know if you need any help regarding any of the above points

Categories: Database Administration, T-SQL Performance

Post a Comment

Oops!

Oops, you forgot something.

Oops!

The words you entered did not match the given text. Please try again.

Already a member? Sign In

16 Comments

Reply DEVELOPER
11:12 AM on March 19, 2012 
very helpful
Reply Islam
09:44 AM on April 17, 2012 
Really I have to follow this
Reply SQL DBA
09:34 AM on May 28, 2012 
valuable information
Reply Hany Galal
06:02 AM on May 29, 2012 
This content has been removed due to abuse.
Reply Hazem
09:49 AM on June 04, 2012 
Very interesting
Reply Mohamed Hady
08:33 PM on June 08, 2012 
Much Helpful
Reply Ayiman
09:32 AM on June 09, 2012 
Interesting articles
Reply Fady
01:51 PM on June 12, 2012 
Helpful information
Reply Amro
02:23 PM on June 14, 2012 
I am interested in this
Reply Anas
07:08 PM on June 15, 2012 
Momentum article
Reply Ahmed
10:16 PM on June 15, 2012 
Helpful biog and interesting
Reply Omar Mostafa
02:22 PM on June 18, 2012 
Very interesting
Reply Metwally
05:51 PM on June 19, 2012 
Really Interesting
Reply DBA
11:33 AM on June 29, 2012 
Helpful
Reply asish
05:13 PM on July 08, 2012 
HI Shehap El-Nagar ,

Your articles are very interesting and really very use full
How do we handle the large database in production environment?if possible giv me some tips
Regards,
Asish
Reply karem Harby
11:26 AM on October 10, 2012 
Very helpful and useful