Você está na página 1de 25

Overview of SQL Server

Vu Tuyet Trinh
trinhvt-fit@mail.hut.edu.vn

Hanoi University of Technology


1

Introduction to SQL Server

P2-3

Client
Results

SQL Server

Query

OLTP OLAP

Client Application

Relational Database Management System

Microsoft

SQL Server Goal


Reliability Availability Scalability

Performance

Data Integrity and Protection

Transaction Isolation

Reporting

Data Analysis

Microsoft

Outline

Introduction to SQL Server Relational Data Model Exploring SQL Server Architecture

Data Access Architectures SQL Server Services & Tools Transact-SQL (T-SQL) CLR

Programming Languages

SQL Server Editions Evolution of SQL Server Summary

Microsoft

Relational Data Model


Entities
Student
Id 1108 Name Robert Glen Norman Mary Suburb Kew Bundoora Bundoora Balwyn

Relational Database
Takes
SID 1108 1108 8507 8507 Name Systems Database VB Algebra Dept CSCE CSCE CSCE Maths SNO 21 23 23 29

Attributes

3936 8507 8452

Subject
No

Relationship

21 23 29 18

Microsoft

Basic Concepts of a Relational Database


Entities
Tables

Attributes
Fields Relations

Microsoft

Basic concepts
Database ~ a collection of tables.

Student
Id 1108 3936 8507 8452 Name Robert Glen Norman Mary Suburb Kew Bundoora Bundoora Balwyn

Table ~ information about a single entity


Primary key ~ column(s) that identifies a record. (set of) uniquely

Takes
SID 1108 1108 8507 8507 SNO 21 23 23 29

Foreign key ~ (set of) column(s) used to link table together


Microsoft

Database Design: Main Ideas

Objective

Ensuring data completeness Avoiding data redundancies Facilitating data access

Solution

Normalization

Reducing redundancies and improving data modification performance Renormalizations is often done to enhance reporting performance (at the expense of disk space and redundancy) Maintains the logical relationships between database objects

Referential Integrity

Microsoft

Example

Microsoft

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

Microsoft

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)

Microsoft

Client/Server Architecture
Client SQL Server

Results

OLTP OLAP

Query Client Application Relational Database Management System

Microsoft

N-tier Architecture

Microsoft

Service-Oriented Architecture

Microsoft

P18

SQL Server Services


MSSQLServer Service SQLServerAgent Service Microsoft Distributed Transaction Coordinator Server Microsoft Search
Microsoft

Data Management Transaction and Query Processing Data Integrity Jobs Alerts Operators Distributed Transaction Management

Full-Text Catalogs Full-Text Indexes

Microsoft

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)

Microsoft

CLR Integration

Lets you write your database queries using .NET Any .NET language (C#, VB, C++) Create and debug using Visual Studio IDE

Microsoft

SQL Server Editions

Enterprise (Developer) Edition


Standard Edition

Workgroup Edition
SQL Server Express Edition SQL Server Everywhere Edition

Microsoft

Evolution of SQL Server


SQL Server 6.5 Data warehousing Internet support Differentiation from Sybase SQL Server

SQL Server 7.0


Re-architecture of relational server First to include OLAP in database Auto tuning Ease-of-use

SQL Server 2000


Reliability and scalability advancements Deep XML support Data warehousing SQL Server CE 64 bit support

SQL Server 2005


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-based management Optimized and predictable system performance Dynamic development Beyond relational data Pervasive Business Insight

Cross-release objective
Microsoft

Realibility & Security Integrated Business Intelligence

Performance and Scalability Automatic Tuning

Your Data Any Place, Any Time

Microsoft

Microsoft Data Platform Vision

Microsoft

Microsoft

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

Microsoft

24

Microsoft

Você também pode gostar