25
Overview of SQL Server Vu Tuyet Trinh [email protected] Hanoi University of Technology 1

Session1 Overview

Embed Size (px)

Citation preview

8/7/2019 Session1 Overview

http://slidepdf.com/reader/full/session1-overview 1/25

Overview of SQL Server 

Vu Tuyet [email protected]

Hanoi University of Technology

1

8/7/2019 Session1 Overview

http://slidepdf.com/reader/full/session1-overview 2/25

Microsoft

Microsoft

Introduction to SQL Server 

Relational DatabaseManagement System

SQL Server Client

ResultsResults

Client Application

OLAPOLAP

OLTPOLTPQueryQuery

P2-3

8/7/2019 Session1 Overview

http://slidepdf.com/reader/full/session1-overview 3/25

Microsoft

Microsoft

SQL Server Goal

8/7/2019 Session1 Overview

http://slidepdf.com/reader/full/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/7/2019 Session1 Overview

http://slidepdf.com/reader/full/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/7/2019 Session1 Overview

http://slidepdf.com/reader/full/session1-overview 6/25

Microsoft

Microsoft

Basic Concepts of a Relational Database

Entities

Attributes

Relations

Tables

Fields

8/7/2019 Session1 Overview

http://slidepdf.com/reader/full/session1-overview 7/25

MicrosoftMicrosoft

Basic concepts

Database ~ a collection of tables.

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/7/2019 Session1 Overview

http://slidepdf.com/reader/full/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/7/2019 Session1 Overview

http://slidepdf.com/reader/full/session1-overview 9/25

MicrosoftMicrosoft

Example

8/7/2019 Session1 Overview

http://slidepdf.com/reader/full/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/7/2019 Session1 Overview

http://slidepdf.com/reader/full/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 (SO A)

8/7/2019 Session1 Overview

http://slidepdf.com/reader/full/session1-overview 12/25

MicrosoftMicrosoft

Client/Server Architecture

Relational Database

Management System

SQL Server Client

ResultsResults

Client Application

OLAPOLAP

OLTPOLTP

QueryQuery

8/7/2019 Session1 Overview

http://slidepdf.com/reader/full/session1-overview 13/25

MicrosoftMicrosoft

N-tier Architecture

8/7/2019 Session1 Overview

http://slidepdf.com/reader/full/session1-overview 14/25

MicrosoftMicrosoft

Service-Oriented Architecture

8/7/2019 Session1 Overview

http://slidepdf.com/reader/full/session1-overview 15/25

MicrosoftMicrosoft

SQL Server Services

Microsoft Distributed

Transaction Coordinator 

MSSQLServer Service

SQLServerAgentService

Microsoft Search

Server 

Data Management Transaction and Query

Processing

Data Integrity

Jobs

 Alerts

Operators

Full-TextCatalogs

Full-Text Indexes

Distributed TransactionManagement

P18

8/7/2019 Session1 Overview

http://slidepdf.com/reader/full/session1-overview 16/25

MicrosoftMicrosoft

8/7/2019 Session1 Overview

http://slidepdf.com/reader/full/session1-overview 17/25

MicrosoftMicrosoft

Transact-SQL (T-SQL)

Implementation of Entry-Level ANSI ISO Standard

Composing of 3 categories

Data Definition Language Statements (DDL)

Data Control Language Statements (DCL)

Data Manipulation Language Statements (DML)

8/7/2019 Session1 Overview

http://slidepdf.com/reader/full/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/7/2019 Session1 Overview

http://slidepdf.com/reader/full/session1-overview 19/25

MicrosoftMicrosoft

SQL Server Editions

Enterprise (Developer) Edition

Standard Edition

Workgroup Edition

SQL Server Express Edition

SQL Server Everywhere Edition

8/7/2019 Session1 Overview

http://slidepdf.com/reader/full/session1-overview 20/25

MicrosoftMicrosoft

Evolution of SQL Server 

SQL Server 

7.0

SQL Server 

2005

SQL Server 

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 Server CE

64 bit support

Re-architecture

of relational

server 

First to includeOLAP in

database

 Auto tuning

Ease-of-use

CrossCross--releaserelease

objectiveobjective

SQL Server 

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

SQL Server 

2008

Secure trusted

platform for data

Productive

policy-basedmanagement

Optimized and

predictable

system

performance

Dynamic

development Beyond

relational data

Pervasive

Business Insight

8/7/2019 Session1 Overview

http://slidepdf.com/reader/full/session1-overview 21/25

MicrosoftMicrosoft

Your Data Any Place, Any Time

8/7/2019 Session1 Overview

http://slidepdf.com/reader/full/session1-overview 22/25

MicrosoftMicrosoft

Microsoft Data Platform Vision

8/7/2019 Session1 Overview

http://slidepdf.com/reader/full/session1-overview 23/25

MicrosoftMicrosoft

8/7/2019 Session1 Overview

http://slidepdf.com/reader/full/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/7/2019 Session1 Overview

http://slidepdf.com/reader/full/session1-overview 25/25

MicrosoftMicrosoft