Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

28
Module 1 Introduction to SQL Server® 2008 R2 and its Toolset

Transcript of Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

Page 1: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

Module 1

Introduction to SQL Server® 2008 R2 and

its Toolset

Page 2: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

Module Overview

• Introduction to the SQL Server Platform

• Working with SQL Server Tools

• Configuring SQL Server Services

Page 3: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

Lesson 1: Introduction to the SQL Server Platform

• SQL Server Architecture

• SQL Server Components

• SQL Server Instances

• SQL Server Editions

• SQL Server Versions

Page 4: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

SQL Server Architecture

• Complete set of enterprise-ready technologies and tools More than a simple relational database management system

Manage organizational data

Derive value from information within the data

High performance

High availability

Secure

Scalable

• Low total cost of ownership

• Highly integrated platform Productive management and development tooling

Page 5: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

SQL Server Components

• Not just a database engine

• Relational and Business Intelligence Components

SQL Server Components

Database Engine Analysis Services

Integration Services Reporting Services

Master Data Services StreamInsight

Data Mining Full-Text Search

PowerPivot Replication

Page 6: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

SQL Server Instances

• Many SQL Server components are instance-aware Database Engine

Analysis Services / Data Mining

Reporting Services

• Instances allows for isolation of Administration and Security Configuration

Performance, Service Level Agreements

Versions, Collations

• Can assist with upgrade scenarios

• Two instance types Default instance

Named instances

Page 7: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

SQL Server Editions

Premium Editions

Parallel Data Warehouse Datacenter

Core Editions

Enterprise Standard

Other Editions

Express Compact

Developer Workgroup

Web SQL Azure

Page 8: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

SQL Server Versions

Version Release Year

1.0 1989

1.1 1991

4.2 1992

4.21 1994

6.0 1995

6.5 1996

7.0 1998

2000 2000

2005 2005

2008 2008

2008 R2 2010

vNext TBD

Page 9: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

Lesson 2: Working with SQL Server Tools

• Connecting from Clients and Applications

• Software Layers for Connections

• SQL Server Management Studio

• Demonstration 2A: SQL Server Management Studio

• Business Intelligence Development Studio

• Demonstration 2B: Business Intelligence Development Studio

• Books Online

• Demonstration 2C: Books Online

Page 10: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

Connecting from Clients and Applications

• Client applications and tools connect via protocols to end-points Tabular Data Stream (TDS) protocol

SQL Native Access Client (SNAC)

Transported by TCP/IP, Named Pipes, or Shared Memory

• Users (or the applications) must be authenticated by SQL Server Windows logins

Windows groups

SQL Server logins

• Connection is made to a server and a database Can be the name of the server or a named instance

Page 11: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

Software Layers for Connections

CLIENT

SNAC

OLE DB ODBC

Network Libraries

SERVER

Endpoints

SQ

L O

S

Relational Engine

Storage EngineTD

S

Page 12: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

SQL Server Management Studio

• Integrated environment for working with SQL Server Querying data

Configuring servers

Managing servers

Administering databases

• Graphical tools for working with many SQL Server components

• Connect to Database Engine, Analysis Services, Reporting Services, Integration Services, SQL Server Compact

• Project system with rich script editors Scripts to automate common tasks and deployment

Page 13: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

Demonstration 2A: SQL Server Management Studio

• In this demonstration you will see how to work with SQL Server Management Studio

Page 14: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

Business Intelligence Development Studio

• Integrated environment for developing BI objects

• Based on Visual Studio 2008 with project templates Analysis Services project

Integration Services project

Reporting Services project

Page 15: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

Demonstration 2B: Business Intelligence Development Studio

• In this demonstration you will see how to work with SQL Server Business Intelligence Development Studio

Page 16: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

Books Online

• Primary reference for SQL Server

• Can be installed offline and online

• Constantly updated

• Most commands include examples

• Pages available for earlier versions

Page 17: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

Demonstration 2C: Books Online

• In this demonstration you will see how to work with SQL Server Business Books Online

Page 18: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

Lesson 3: Configuring SQL Server Services

• SQL Server Configuration Manager

• SQL Server Services

• Network Ports and Listeners

• Creating Server Aliases

• Other SQL Server Tools

• Demonstration 3A: SQL Server Profiler

Page 19: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

SQL Server Configuration Manager

• Manages services associated with SQL Server

• Manages network protocols and ports exposed by SQL Server

• Manages network protocols and ports used by client applications on the server when connecting to the same or other servers

Page 20: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

SQL Server Services

• Many SQL Server components provide operating system services

• Instance-aware components provide a service per instance

• Services have identities within Windows Avoid excessive privileges

• Services can be configured to auto-start

Page 21: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

Network Ports and Listeners

• Each protocol has configurable properties

• Server and client configurations available

Page 22: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

Creating Server Aliases

• Aliases can be used as an abstraction for a client Server Name

Protocol

Port or network configuration

• Multiple aliases can point to the same server

Page 23: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

Other SQL Server Tools

• SQL Server Profiler

• Database Engine Tuning Advisor

• Master Data Services Configuration Manager

• Reporting Services Configuration Manager

• SQL Server Error and Usage Reporting

• PowerShell Provider

• SQL Server Management Objects (SMO)

Page 24: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

Demonstration 3A: SQL Server Profiler

• In this demonstration, you will see how SQL Server Profiler can capture traces of statements executed

Page 25: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

Lab 1: Introduction to SQL Server and its Toolset• Exercise 1: Verify SQL Server Component Installation

• Exercise 2: Alter Service Accounts for New Instance

• Exercise 3: Enable Named Pipes Protocol for Both Instances

• Exercise 4: Create Aliases for AdventureWorks and Proseware

• Challenge Exercise 5: Ensure SQL Browser is Disabled and Configure a Fixed TCP/IP Port (Only if time permits)

Virtual machine 623XB-MIA-SQL1

User name AdventureWorks\Administrator

Password Pa$$w0rd

Estimated time: 30 minutes

Page 26: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

Lab Scenario

Adventureworks is a global manufacturer, wholesaler and retailer of cycle products. The owners of the company have decided to start a new direct marketing arm of the company. It has been created as a new company named Proseware, Inc. Even though it has been set up as a separate company, it will receive some IT-related services from the existing Adventureworks company and will be provided with a subset of the corporate Adventureworks data. The existing Adventureworks company SQL Server platform has been moved to a new server that is capable of supporting both the existing workload and the workload from the new company. In this lab, we are ensuring that the additional instance of SQL Server has been configured appropriately and making a number of additional required configuration changes.

Page 27: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

Lab Review

• Why does the Reporting Services encryption key need to be backed up?

• How can SQL Server be configured to use a different IP port?

Page 28: Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.

Module Review and Takeaways

• Review Questions

• Best Practices