Solved

checklist Sql server

Posted on 2016-09-14
5
50 Views
Last Modified: 2016-09-17
good evening

 someone would have some Sql script server to make a checklist to check on the health of the instance and the databases ?

 thank you
0
Comment
Question by:Alex
[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
5 Comments
 
LVL 50

Assisted Solution

by:Vitor Montalvão
Vitor Montalvão earned 167 total points
ID: 41799307
Too check the health of the databases run a DBCC CHECKDB command every day.
For the instances there's not much to do but monitoring the resources usage (CPU, RAM and Storage).
0
 
LVL 29

Accepted Solution

by:
Pawan Kumar earned 333 total points
ID: 41799312
There is sometimes the need to do a quick SQL Server healthcheck. Usually this is needed before a maintenance or a migration takes place or after a problem has been resolved. The time given to you for this typical healthcheck is usually short, so let’s see how you can do this in a quick and efficient manner:

 

Eventviewer

The Eventviewer tool is the first place you should look for Operating System level issues. Don’t waste too much time on the Application log, as the SQL Server messages you will find there, are duplicates of the messages you will also see at the SQL Server ERRORLOG. The System log is where you should put the focus on. I usually filter the log so that it shows only the Errors and Warnings – Information messages are useful for troubleshooting specialized issues and not for generic healthchecks. Error and Warning event sources that usually draw my attention are:

  NTFS

(possible NTFS corruption messages)

  Disk

(possible Storage issues)

  EventLog

(Unexpected shutdowns)

  Microsoft-Windows-WER-SystemErrorReporting

(Unexpected shutdowns)

  Microsoft-Windows-Kernel-Power

(Unexpected shutdowns)

 

ERRORLOG

These error log files are usually found here:

C:\Program Files\Microsoft SQL Server\<instance_name>\MSSQL\Log

They can be accessed from inside SQL Server Management Studio if you prefer so.

Messages that usually draw my attention are:

  All kinds of Errors (except login errors, which are usually spammed in the ERRORLOG)

  Any enabled trace flags (you will see them appear in this format: -TXXXX, where XXXX is a number)

  Any database corruption messages

Also these messages:

  A significant part of sql server memory has been paged out

(incorrect memory configuration)

  SQL Server has encountered x occurrence(s) of I/O requests taking longer than 15 seconds to complete on file

(storage performance issues)

  SQL Server is starting at high priority base

(priority needs to be changed back to normal)

  Deadlock encountered …. Printing deadlock information

(deadlock)

  deadlock-list

(deadlock)

 

Perfmon

You can use these steps to quickly check if your SQL Server has any performance issues:

http://blogs.msdn.com/b/john_daskalakis/archive/2013/10/14/how-to-troubleshoot-sql-server-performance-issues-with-simple-tools-part-2-how-to-analyze-the-perfmon-trace-and-detect-io-bottlenecks.aspx

 

The above checks should not take more than 30-40 minutes to complete.
0
 
LVL 29

Assisted Solution

by:Pawan Kumar
Pawan Kumar earned 333 total points
ID: 41799315
This is quite a large topic. You have to monitor lots of performance counters, as well as other information like wait and file stats from inside SQL to really get a good server "health check".

If by a health check, you mean checking the consistency of the database. Then you would need to run a DBCC CHECKDB against the database. This would definitely affect performance if the database is a highly transactional database due to kind of locks the consistency check needs to acquire while performing the operation and also the IO done on the database would increase.

Normally when I perform a health check I usually do a number of things. You can get a good start by running the SQL Server Best Practice Analyzer : against your servers.

In case you want to check the performance metrics for the database. Eg. The most expensive queries executed against the database w.r.t. to I/O or CPU or Duration. Then you could use Performance Dashboard.
0
 

Author Closing Comment

by:Alex
ID: 41802949
thank's
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

687 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