Transcript

Introduction

Multi server management via:

Linked Servers

SSMS

SSIS

SSRS

PowerPivot

Powershell

Whoami?

SQL Server Consultant@ www.pythian.com

24/7 Remote DBA services

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….

Manual (server by server)

Linked Servers

SQL Server 2008 SSMS Multiserver Management

Integration Services

Excel and PowerPivot

Reporting Services

SQLCMD/osql

PowerShell

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

SQL Server 2008 SSMS

(Multi server queries)

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

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

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"

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

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

Performance Dashboard

Template Explorer

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

Set of templates

Out-of-the box

Customized

Questions?

Feel free to contact me:

gutzait@pythian.com

Michelle.gutzait@gmail.com

top related