22
Module 19 Managing Multiple Servers

Module 19 Managing Multiple Servers

Embed Size (px)

DESCRIPTION

Module 19 Managing Multiple Servers. Module Overview. Working with Multiple Servers Virtualizing SQL Server Deploying and Upgrading Data-Tier Applications. Lesson 1: Working with Multiple Servers. Overview of Central Management Servers Executing Multi-server Queries - PowerPoint PPT Presentation

Citation preview

Page 1: Module 19 Managing Multiple Servers

Module 19

Managing Multiple Servers

Page 2: Module 19 Managing Multiple Servers

Module Overview

• Working with Multiple Servers

• Virtualizing SQL Server

• Deploying and Upgrading Data-Tier Applications

Page 3: Module 19 Managing Multiple Servers

Lesson 1: Working with Multiple Servers

• Overview of Central Management Servers

• Executing Multi-server Queries

• Demonstration 1A: Executing Multi-server Queries

Page 4: Module 19 Managing Multiple Servers

Overview of Central Management Servers

• Configuration requires: Define CMS server (typically only one server)

Create server groups

Register servers

• Group actions permitted: Execute T-SQL statements

Evaluate and Import Policy-Based Management policies

Browse Object Explorer

• Usage requires Windows Authentication and membership of ServerGroupReaderRole

Central Management Servers are used to hold details of servers within an organization and to organize the servers within groups.

Page 5: Module 19 Managing Multiple Servers

Executing Multi-server Queries

• T-SQL queries can be executed on multiple servers at the same time

• Results can be merged

• Additional columns are provided for source server and login information

Different permissions might apply on each server instance !

Page 6: Module 19 Managing Multiple Servers

Demonstration 1A: Executing Multi-server Queries

In this demonstration, you will see:

• How to create a Central Management Server

• How to execute multi-server queries

Page 7: Module 19 Managing Multiple Servers

Lesson 2: Virtualizing SQL Server

• Discussion: Advantages and Disadvantages of Virtualizing SQL Server

• Overview of SQL Server Virtualization

• Common Virtualization Scenarios

• Considerations for Virtualizing SQL Server

• Overview of System Center Virtual Machine Manager

Page 8: Module 19 Managing Multiple Servers

Discussion: Advantages and Disadvantages of Virtualizing SQL Server

• Do you use virtualization of SQL Server in your environment?

• If you are using virtualization, why are you using it?

• What are the main advantages provided by virtualization?

• What are the main concerns with virtualizing SQL Server?

Page 9: Module 19 Managing Multiple Servers

Overview of SQL Server Virtualization

Root Partition Windows Server

Child PartitionWindows Server

SQL Server

Child PartitionWindows Server

SQL Server

Hyper-V Hypervisor

Hardware

Page 10: Module 19 Managing Multiple Servers

Common Virtualization Scenarios

• Consolidate several stand alone installations • Create more supportable systems running older

versions

SQL Server consolidation

• Provide hardware independence• Create failover clusters and use Live Migration

High availability

• Provide dynamic CPU, memory and network allocation

Dynamic resource allocation to meet SLA

• Easily build and run test environments

Test systems

Page 11: Module 19 Managing Multiple Servers

Considerations for Virtualizing SQL Server

• Use POC to ensure that virtualization meet your needs

• Provide appropriate I/O resources Use pass-through disks

Apply best practice as for non-virtualized systems

Use SQLIO for pre-deployment testing

• Provide appropriate CPU resources Provide additional CPU for network intensive systems

• Avoid the use of emulated devices Install integration components for Hyper-V that provide

synthetic devices

Page 12: Module 19 Managing Multiple Servers

Overview of System Center Virtual Machine Manager

• Component of the System Center suite

• Often used in conjunction with System Center Operations Manager (SCOM)

• Allows balancing resources across multiple virtual machines Avoids much of the need to balance resources within each

machine

System Center Virtual Machine Manager (SCVMM) is a tool that allows you to manage resource allocations between multiple virtual machines.

Page 13: Module 19 Managing Multiple Servers

Lesson 3: Deploying and Upgrading Data-Tier Applications

• Data-tier Application Overview

• Deploying Data-tier Applications

• Upgrading Data-tier Applications

• Extracting Data-tier Applications

• Demonstration 3A: Working with Data-tier Applications

Page 14: Module 19 Managing Multiple Servers

Data-tier Application Overview

• Unit of deployment for T-SQL applications

• Targeted at departmental applications Not intended for large line of

business applications

• Wraps deployment intent as policies

• Simplifies deployment Install Uninstall Upgrade

LOGICALTablesViews

ConstraintsProcedures

UDFs

PHYSICALUsersLogins

Indexes

DEPLOYMENT PROFILERequirements

Policies

Data-tier Application Component

Schema

Page 15: Module 19 Managing Multiple Servers

Deploying Data-tier Applications

• Wizard-based deployment

• Requires target database name

• Checks server-selection policy

• Creates database and objects Default database settings are

used

Recovery model from the model database

• Review and test .dacpac files before production deployment

Page 16: Module 19 Managing Multiple Servers

Upgrading Data-tier Applications

• Wizard-based upgrade process Used to change schema and properties of deployed

applications

Not T-SQL script-based

New database created with new schema

Application name must match currently deployed file

• Data is migrated Original database renamed and set to read-only

New replacement database created

Space usage must be considered

Data migration time must be considered

• Process can be managed via PowerShell

Page 17: Module 19 Managing Multiple Servers

Extracting Data-tier Applications

• Data-tier applications can be extracted from many existing databases

• Not all databases can be extracted

• Reverse engineering process: Extract through SSMS

Create Visual Studio Project

Develop new application version

Compile and build

Upgrade application to new version

Page 18: Module 19 Managing Multiple Servers

Demonstration 3A: Working with Data-tier Applications

• In this demonstration, you will see: How to deploy a data-tier application

How to upgrade a data-tier application

Page 19: Module 19 Managing Multiple Servers

Lab 19: Managing Multiple Servers

• Exercise 1: Configure CMS and execute multi-server queries

• Exercise 2: Deploy a data-tier application

• Exercise 3: Register and extract a data-tier application

• Challenge Exercise 4: Upgrade a data-tier application (Only if time permits)

Logon information

Estimated time: 45 minutes

Virtual machine 623XB-MIA-SQL

User name AdventureWorks\Administrator

Password Pa$$w0rd

Page 20: Module 19 Managing Multiple Servers

Lab Scenario

You have configured a Management Data Warehouse. You need to configure a solution that allows you to easily manage multiple SQL Server instances. You have noticed that on each computer that you connect to your SQL Server network, a different set of servers has been configured. You decide to configure a central management server to provide a consistent list of server groups. Your developers have begun using Data-Tier applications for some of their development. You need to deploy one of these applications to the new server, register an existing database as a Data-Tier application and, if time permits, upgrade a Data-Tier application.

Page 21: Module 19 Managing Multiple Servers

Lab Review

• At what stage is the server selection policy checked when deploying a data-tier application?

• Can multi-server queries be used with servers that you need to connect to using SQL Server authentication?

Page 22: Module 19 Managing Multiple Servers

Module Review and Takeaways

• Review Questions

• Best Practices