Wednesday, July 8, 2009

SQL Server Management Studio Standard Reports

If you have worked with SQL Server Management Studio (SSMS) in either Microsoft SQL Server 2005 or Microsoft SQL Server 2008, you may have inadvertly overlooked one of its key features: Standard Reports.

Standard Reports are Reporting Services (SSRS) reports that can provide all sort of statuses and and information about the database engine and its management components and well as the databases themselves in real time -- the reports are refreshable! When executed, the reports are embedded in tabs within a new SSMS tab. As a consultant, I find these reports particularly useful when attempting to establish the health of a Microsoft Dynamics GP SQL Server installation. I can immediately relay critical SQL Server performance information to my clients and suggest preventative or corrective actions to mitigate the issues, saving them money in the process.

So lets take a look at the available reports by node...

NodeReport
ServerServer Dashboard
ServerConfiguration Changes History
ServerSchema Changes History
ServerScheduler Health
ServerMemory Consumption
ServerActivity – All Blocking Transactions
ServerActivity – All Cursors
ServerActivity – Top Cursors
ServerActivity – All Sessions
ServerActivity – Top Sessions
ServerActivity – Dormant Sessions
ServerActivity – Top Connections
ServerTop Transactions by Age
ServerTop Transactions by Blocked Transactions Count
ServerTop Transactions by Locks Count
ServerPerformance – Batch Execution Statistics
ServerPerformance – Object Execution Statistics
ServerPerformance – Top Queries by Average CPU Time
ServerPerformance – Top Queries by Average IO
ServerPerformance – Top Queries by Total CPU Time
ServerPerformance – Top Queries by Total IO
ServerServer Broker Statistics
ServerTransaction Log Shipping Status
DatabaseDisk Usage
DatabaseDisk Usage by Top Tables
DatabaseDisk Usage by Table
DatabaseDisk Usage by Partition
DatabaseBackup and Restore Events
DatabaseAll Transactions
DatabaseAll Blocking Transactions
DatabaseTop Transactions by Age
DatabaseTop Transactions by Blocked Transactions Count
DatabaseTop Transactions by Locks Count
DatabaseResource Locking Statistics by Object
DatabaseObject Execution Statistics
DatabaseDatabase Consistency History
DatabaseIndex Usage Statistics
DatabaseIndex Physical Statistics
DatabaseSchema Changes History
DatabaseUser Statistics
DatabaseActive Full-Text Catalogs
LoginsLogin Statistics
LoginsLogin Failures
LoginsResource Locking Statistics by Logins
ManagementTasks
ManagementNumber of Errors
NotificationServices General
SQL Server AgentJob Steps Execution History
SQL Server AgentTop Jobs


To access a specific report, just right-click on the desired node then choose Reports > Standard Reports, select the desired report. The following is an example of the navigation to the Server node reports.



Lets take a look at some sample standard reports...

Server Dashboard report (server > Reports > Standard Reports > Server Dashboard)


This report provides detailed configuration information including, but not limited to the SQL Server startup time, product version and edition, server collation, the number of processors in used by the SQL Server instance, CPU usage by database, and number of active databases.

Disk Usage by Top Tables report (database > Reports > Standard Reports > Disk Usage by Top Tables)



This reports shows vital table information such as the number of records in the table, the amount of disk space reserved for the table, spaced occupied by data and indexes, and the unused space. This information can be used to plan for disk space optimization and establish whether it will be necessary to increment the number of partitions or relocate the databases.

Backup and Restore Events report



This one is got to be one of the most important database level reports as it shows statistics about the backups completed on a specific database: average time, size of backups, whether the database backup was complete or differential, etc.

I hope you like this SQL Server gem and start to explore these reports. There is valuable information that can be used to administer your Dynamics GP and overall SQL Server environment.

Until next post!

MG.-
Mariano Gomez, MIS, MCP
Maximum Global Business, LLC
http://www.maximumglobalbusiness.com/

2 comments:

Sudhir DBAKings said...

Nice post very helpful

dbakings

charanjit singh said...

Report tab is disabled . any idea to enable it.