Top Banner
Michelle Gutzait [email protected] [email protected] Blog: http://michelle-gutzait.spaces.live.com/default.aspx
20
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 2: BI for the DBA

Introduction

Multi server management via:

Linked Servers

SSMS

SSIS

SSRS

PowerPivot

Powershell

Page 3: BI for the DBA

Whoami?

SQL Server Consultant@ www.pythian.com

24/7 Remote DBA services

Page 4: BI for the DBA
Page 5: BI for the DBA

Backup age and Recovery Models

Versions and editions of SQL Server and OS

Database sizes and free space

Configured Linked Servers

SQL Server logins

SP code versions

Etc….

Page 6: BI for the DBA

Manual (server by server)

Linked Servers

SQL Server 2008 SSMS Multiserver Management

Integration Services

Excel and PowerPivot

Reporting Services

SQLCMD/osql

PowerShell

Page 7: BI for the DBA
Page 8: BI for the DBA

Linked Servers

Populate a table with list of SQL instance names

Loop over the server names in the table

If Linked Server does not exist:

Create Linked Server

Add a flag

Fetch data from remote server into a local table

If Linked Server needs to be dropped (flag):

Drop Linked Server

Select all collected information

Page 9: BI for the DBA

SQL Server 2008 SSMS

(Multi server queries)

Page 10: BI for the DBA

Populate a table with list of server names

Loop over the server names in the table

Connect to the server

Import information into a local table

Page 11: BI for the DBA

Download Power Pivot (Office 2010)

Open Excel Sheet

Run queries via Power Pivot or Excel Sheet

Connect to servers

Pivot Tables and Pivot Charts

Link information via Power Pivot

Page 12: BI for the DBA

Populate a table with list of server names

Get server name as a parameter

Connect to the server

Query the data as a report

Connection string will be:

= "data source=" & Parameters!ServerNames.Value & “;initial catalog=master"

Page 13: BI for the DBA
Page 14: BI for the DBA

Create an SQL file as input file

Execute CMDSQL or osql for each server, with the above input file

You may want to “format” the results

Page 15: BI for the DBA

Prepare a text file with all instance names

Prepare an input file with the SQL command(s)

Execute the SQL command(s) for every instance in the file

Page 16: BI for the DBA

Performance Dashboard

Template Explorer

Page 17: BI for the DBA

Monitored SQL Server instance must be SQL 2005 SP2 or later

Run the Setup.sql file on each monitored (SQL 2005+) A bug (cpu_ticks_in_ms cpu_ticks)

Open the performance_dashboard_main.rdl file with the Custom Reports in SSMS

Page 18: BI for the DBA
Page 19: BI for the DBA

Set of templates

Out-of-the box

Customized