SQL Overview - Documentation


Note: This documentation includes elements from SQL Overview 6


Packages
 SQL_Overview_Package.dtsx
    This package collects a variety of information from each SQL Server instance
	Designed to be run once a day
	 
 SQL_Overview_JobActivity.dtsx
    Collects data from sp_help_jobactivity
	Setup to be run multiple times a day
	Captured data is truncate at start of execution
 
 SQL_Sysprocesses.dtsx
    Collects data from sysprocesses
	Setup to be run multiple times a day
	Keeps collected data for 7 days


Tables

 dbo.SSIS_ServerList
    Identifies all SQL Server instances that will be accessed by 
	the SSIS packages
  
  
 dbo.SSIS_Errors
   Stores errors encountered while running package SQL_Overview_Package.dtsx
   
 dbo.SSIS_Errors_JobActivity
   Stores errors encountered while running package SQL_Overview_JobActivity.dtsx
   
 dbo.SSIS_Errors_Sysprocesses   
   Stores errors encountered while running package SQL_Sysprocesses.dtsx 

	
 dbo.Backup_History
    Database backup history
	
 dbo.Database_Info
    Infomation about database files and database settings

 dbo.Database_Status
    Database information

 dbo.Disk_Space
    Storage information about disks assigned to servers running SQL Server

 dbo.ErrorLog
    SQL Server Error log contents from servers. 
    	Last 25 hours is collected
	
 dbo.Job_Activity
    SQL Agent job activity from 

 dbo.Job_History
    Stores 7 days of SQL Agent Job History

 dbo.Job_Info
    SQL Agent Job schedules
   
 dbo.SQL_Servers
    SQL Server Instance settings and other information

 dbo.SQL_Sysprocesses
    Copy of the system table sysprocesses from each instance. 
	Data is kept for about 25 hours.
	
 rep.Database_List
    Information on database and the days between backup setting.
    When the column AllowableDaysBetweenBackups setting is NULL,
         the database will not be check for backups.
    However, if a new backup is created for the database, its' setting is changed 1
    because it is being backed up again.

 rep.Disk_Space_Alert
    Disks reported as being low on space

 rep.Long_Running_Jobs
    Jobs reported as running long. There is a setting that 
    can be set per job.
	
 rep.SQL_Overview_Last_Run_Date
    Contains datetime when the SQL Overview package was last executed by SQL Agent Job     

 rep.SQL_Overview_Last_Run_Date_Sysprocesses
    Contains datetime when the SQL Overview package was last executed by SQL Agent Job 

 rep.Sysprocesses_Blocked
     Sysprocesses last reported as being blocked
	
   
Views

 rep.vw_DatabasesMissingLogBackups
    List databases with recovery mode of FULL or BULK_LOGGED missing a log backup
   
 rep.vw_DatabasesMissingBackups
    List database missing backups. 
    	Uses the table rep.Database_List in determining number of days between backups

 rep.vw_DatabasesWithLogFileGreaterThanDatabaseFiles
    List databases with log file sizes greater than the database file size
    	Only files larger than 50 MB are compared
    		To skip specific databases, change the where clause in the view


Jobs

 DBA-SQL Overview
    Execute package SQL_Overview_Package.dtsx and submit Report jobs
	
 DBA-SQL Overview - JobActivity - Only
    Execute package SQL_Overview_JobActivity.dtsx  
	Submit report Long Running Executing Jobs-JobActivity
	
 DBA-SQL Overview - Sysprocesses	
    Execute package SQL_Sysprocesses.dtsx and 
	Submit report Long Running Executing Jobs-Sysprocesses
		
 DBA-SQL Overview - Report Blocked Sysprocesses
    Create Report Blocked Sysprocesses
	
 DBA-SQL Overview - Report Databases Missing Backups
    Create two reports. Databases missing database backups and 
	databases missing log Backups
 
 DBA-SQL Overview - Report Drives Very Low on Space
    Create report idnetify dfrive slow on space
	
 DBA-SQL Overview - Report ErrorLog Messages
    Create report of errors found in dbo.ErrorLog
 
 DBA-SQL Overview - Report Instances Recently Started
    Create report of SQL Server instances restarted since last time job 
	DBA-SQL Overview was executed.
 
 DBA-SQL Overview - Report Job Failures
    Create report of SQL Agent jobs that failed since last time job 
	DBA-SQL Overview was executed.
 
 DBA-SQL Overview - Report Large Log File
    Create report of databases with large log files
 
 DBA-SQL Overview - Report Long Running Executing Jobs-JobActivity
    Create report of SQL Agent jobs currently running longer than expected 
  
 DBA-SQL Overview - Report Long Running Executing Jobs-Sysprocesses
    Create report of Sysproccess currently running longer than expected 
	 
 DBA-SQL Overview - Report Long Running Finished Jobs
    Create report of SQL Agent jobs that completed but ran longer than expected.
    Adds rows to rep.Long_Running_Jobs for jobs reported as running long
    Add DEFAULT row if not present in the table rep.Long_Running_Jobs

 
 DBA-SQL Overview - Report SQLAgent Stopped
    Create report of SQL Server instances that are missing a SQL Agent Process
 
 DBA-SQL Overview - Report Table Refresh Errors
    Created from dbo.SSIS_Errors

 DBA-SQL Overview - Report Table Refresh Errors-JobActivity
    Created from dbo.SSIS_Errors_JobActivity
    This table store errors encountered while running the separate SSIS 
    package SQL_Overview_JobActivity.dtsx
 
 DBA-SQL Overview - Report Table Refresh Errors-Sysprocesses
    Created from dbo.SSIS_Errors_Sysprocesses
    You can customize its SQL to add/remove messages that are reported
     



Reference:
The SSIS package is based on the package published in the SQL Server Magazine article "SQL Server Integration Services" by Rodney Landrum. http://www.sqlmag.com/Articles/ArticleID/95385/95385.html?Ad=1

