48680437 session1 overview

Upload: duy-nguyen

Post on 07-Apr-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/6/2019 48680437 Session1 Overview

    1/25

    Overview of SQL Server

    Vu Tuyet [email protected]

    Hanoi University of Technology

    1

  • 8/6/2019 48680437 Session1 Overview

    2/25

    Microsoft

    Microsoft

    Introduction to SQL Server

    Relational DatabaseManagement System

    SQLServerClient

    ResultsResults

    Client Application

    OLAPOLAP

    OLTPOLTPQueryQuery

    P2-3

  • 8/6/2019 48680437 Session1 Overview

    3/25

    Microsoft

    Microsoft

    SQL Server Goal

    Reliability Availability Scalability

    PerformanceData

    Integrity andProtection

    TransactionIsolation

    ReportingData

    Analysis

  • 8/6/2019 48680437 Session1 Overview

    4/25

    Microsoft

    Microsoft

    Outline

    Introduction to SQL Server

    Relational Data Model

    Exploring SQL Server Architecture Data Access Architectures

    SQL Server Services & Tools

    Programming Languages Transact-SQL (T-SQL)

    CLR SQL Server Editions

    Evolution of SQL Server

    Summary

  • 8/6/2019 48680437 Session1 Overview

    5/25

    Microsoft

    Microsoft

    Relational Data Model

    BundooraNorman8507

    BalwynMary8452

    BundooraGlen3936

    KewRobert1108

    SuburbNameId

    Student

    Takes

    298507

    238507

    231108

    211108

    SNOSID

    CSCEVB29

    MathsAlgebra18

    CSCEDatabase23

    CSCESystems21

    DeptNameNo

    Subject

    BundooraNorman8507

    BalwynMary8452

    BundooraGlen3936

    KewRobert1108

    SuburbNameId

    Student

    Takes

    298507

    238507

    231108

    211108

    SNOSID

    CSCEVB29

    MathsAlgebra18

    CSCEDatabase23

    CSCESystems21

    DeptNameNo

    Subject

    Relational DatabaseEntities

    Attributes

    Relationship

  • 8/6/2019 48680437 Session1 Overview

    6/25

    Microsoft

    Microsoft

    Basic Concepts of a Relational Database

    Entities

    Attributes

    Relations

    Tables

    Fields

  • 8/6/2019 48680437 Session1 Overview

    7/25

    MicrosoftMicrosoft

    Basic concepts

    Database ~ a collection oftables.

    Table ~ information about asingle entity

    Primary key ~ (set of)column(s) that uniquely

    identifies a record.Foreign key ~ (set of)column(s) used to link tabletogether

    Id Na e Suburb

    1108 Rober Ke

    3936 Glen Bundoora

    8507 Nor an Bundoora

    8452 ary Bal yn

    S uden

    akesSID SN

    1108 211108 23

    8507 23

    8507 29

  • 8/6/2019 48680437 Session1 Overview

    8/25

    MicrosoftMicrosoft

    Database Design: Main Ideas

    Objective Ensuring data completeness

    Avoiding data redundancies

    Facilitating data access

    Solution Normalization

    Reducing redundancies and improving data modificationperformance

    Renormalizations is often done to enhance reporting performance(at the expense of disk space and redundancy)

    Referential Integrity Maintains the logical relationships between database objects

  • 8/6/2019 48680437 Session1 Overview

    9/25

    MicrosoftMicrosoft

    Example

  • 8/6/2019 48680437 Session1 Overview

    10/25

    MicrosoftMicrosoft

    Outline

    Introduction to SQL Server

    Relational Data Model

    Exploring SQL Server Architecture Data Access Architectures

    SQL Server Services & Tools

    SQL Server Editions

    Evolution of SQL Server

    Summary

  • 8/6/2019 48680437 Session1 Overview

    11/25

    MicrosoftMicrosoft

    Data Access Architectures

    Client / Server architecture

    Data functionalities on server-side

    Visual functionalities on client-side N-tier architecture

    Separating different layers based on data-related processing

    such

    Some layers: data storage, data access, business functionalities,

    visualization (interface) Service Oriented Architecture (SOA)

  • 8/6/2019 48680437 Session1 Overview

    12/25

    MicrosoftMicrosoft

    Client/Server Architecture

    Relational Database

    Management System

    SQLServerClient

    ResultsResults

    Client Application

    OLAPOLAP

    OLTPOLTP

    QueryQuery

  • 8/6/2019 48680437 Session1 Overview

    13/25

    MicrosoftMicrosoft

    N-tier Architecture

  • 8/6/2019 48680437 Session1 Overview

    14/25

    MicrosoftMicrosoft

    Service-Oriented Architecture

  • 8/6/2019 48680437 Session1 Overview

    15/25

    MicrosoftMicrosoft

    SQL Server Services

    Microsoft Distributed

    Transaction Coordinator

    MSSQLServerService

    SQLServerAgentService

    Microsoft Search

    Server

    Data Management Transaction and Query

    Processing

    Data Integrity

    Jobs

    Alerts

    Operators

    Full-TextCatalogs

    Full-Text Indexes

    Distributed TransactionManagement

    P18

  • 8/6/2019 48680437 Session1 Overview

    16/25

    MicrosoftMicrosoft

  • 8/6/2019 48680437 Session1 Overview

    17/25

    MicrosoftMicrosoft

    Transact-SQL (T-SQL)

    Implementation of Entry-Level ANSIISO Standard

    Composing of 3 categories

    Data Definition Language Statements (DDL)

    Data Control Language Statements (DCL)

    Data Manipulation Language Statements (DML)

  • 8/6/2019 48680437 Session1 Overview

    18/25

    MicrosoftMicrosoft

    CLR Integration

    Lets you write your database queries using .NET

    Any .NET language (C#, VB, C++)

    Create and debug using Visual Studio IDE

  • 8/6/2019 48680437 Session1 Overview

    19/25

    MicrosoftMicrosoft

    SQL Server Editions

    Enterprise (Developer) Edition

    Standard Edition

    Workgroup Edition

    SQL Server Express Edition

    SQL Server Everywhere Edition

  • 8/6/2019 48680437 Session1 Overview

    20/25

    MicrosoftMicrosoft

    Evolution of SQL Server

    SQLServer

    7.0

    SQLServer

    2005

    SQLServer

    2000

    Realibility & SecurityRealibility & Security

    Integrated Business IntelligenceIntegrated Business IntelligencePerformance and ScalabilityPerformance and Scalability

    Automatic Tuning

    Automatic Tuning

    Reliability and

    scalability

    advancements

    Deep XMLsupport

    Data

    warehousing

    SQL ServerCE

    64 bit support

    Re-architecture

    of relational

    server

    First to includeOLAP in

    database

    Auto tuning

    Ease-of-use

    CrossCross--releaserelease

    objectiveobjective

    SQLServer

    6.5

    Data

    warehousing

    Internet

    support Differentiation

    from Sybase

    SQL Server

    Enterprise-class

    scalability

    Programmability

    advancements End-to-end

    business

    intelligence

    Manageability

    Support for

    multiple types of

    data

    SQLServer

    2008

    Secure trusted

    platform for data

    Productive

    policy-basedmanagement

    Optimized and

    predictable

    system

    performance

    Dynamic

    development Beyond

    relational data

    Pervasive

    Business Insight

  • 8/6/2019 48680437 Session1 Overview

    21/25

    MicrosoftMicrosoft

    Your Data Any Place, Any Time

  • 8/6/2019 48680437 Session1 Overview

    22/25

    MicrosoftMicrosoft

    Microsoft Data Platform Vision

  • 8/6/2019 48680437 Session1 Overview

    23/25

    MicrosoftMicrosoft

  • 8/6/2019 48680437 Session1 Overview

    24/25

    MicrosoftMicrosoft

    Summary

    SQL Server ~ a database management system

    Supporting relational data model

    Supporting data services and tools for database administration

    SQL Server ~ the core of a new generation data platform

    Exploited in client/server, n-tier, service-orientes architectures

    being extensible and flexible data stored

    extensible relational data

    XML

    unstructured data

    Supporting .net

    24

  • 8/6/2019 48680437 Session1 Overview

    25/25

    MicrosoftMicrosoft