Sie sind auf Seite 1von 15

Training for future |

contacto@learnIT.edu.pe

Bienvenidos
Implementacin Base de Datos
MS SQL Server 2014
Ing. Germn Cayo Morales
Microsoft MVP SQL Server
german.cayo@learnit.edu.pe

Training for future |

AGENDA

Introduction to Microsoft SQL Server 2014

Introduction to Transact SQL Querying

Using Window Ranking, Offset and


Aggregate Functions

Improving Query Performance

In Memory OLTP SQL Server 2014

contacto@learnIT.edu.pe

Training for future |

Introduction to Microsoft SQL Server 2014


Services

Instances

Tools

contacto@learnIT.edu.pe

Training for future |

Introduction to Transact SQL Querying

Structured Query Language (SQL)

Developed by IBM in 1970s

Adopted as a standard by ANSI and ISO standards


bodies

Widely used in industry


PL/SQL, SQL Procedural Language, Transact-SQL

Microsofts implementation is Transact-SQL

Referred to as T-SQL

Query language for SQL Server 2012

SQL is declarative, not procedural

Describe what you want, dont specify steps


contacto@learnIT.edu.pe

Training for future |

Introduction to Transact SQL Querying

Categories of T-SQL
Statements

DML: Statements for querying


and modifying data. SELECT,
INSERT, UPDATE, DELETE

DDL: Statements for object


definitions. CREATE, ALTER,
DROP

DCL: Statements for security


permissions GRANT, REVOKE,
DENY

contacto@learnIT.edu.pe

Data
Manipulation
Language

Categories

Data Control
Language

Data
Definition
Language

Training for future |

Using Window Ranking, Offset and Aggregate Functions


Result set
(OVER)
Window
partition
(PARTITION BY)
Frame
(ROWS BETWEEN)

contacto@learnIT.edu.pe

Training for future |

Using Window Ranking, Offset and Aggregate Functions

contacto@learnIT.edu.pe

Training for future |

Improving Query Performance

contacto@learnIT.edu.pe

Training for future |

Improving Query Performance

contacto@learnIT.edu.pe

Training for future |

Microsoft in-memory technologies

2012

contacto@learnIT.edu.pe

2012

Training for future |

In-Memory OLTP
SQL Server engine

In-Memory OLTP
compiler
Native compiled SPs &
schema

New high-performance, memory-optimized


online transaction processing (OLTP) engine
integrated into SQL Server and architected for
modern hardware trends

In-Memory OLTP
engine: Memoryoptimized tables &
indexes

Memory-optimized
table file group

Transaction log

Data file group


11

contacto@learnIT.edu.pe

Training for future |

Create Table DDL


CREATE TABLE [Customer](
[CustomerID] INT NOT NULL
PRIMARY KEY NONCLUSTERED HASH WITH (BUCKET_COUNT = 1000000),

Hash index

[Name] NVARCHAR(250) NOT NULL

INDEX [IName] HASH WITH (BUCKET_COUNT = 1000000),

Secondary indexes
are specified inline

[CustomerSince] DATETIME NULL


)
WITH (MEMORY_OPTIMIZED = ON, DURABILITY = SCHEMA_AND_DATA);

This table is durable

This table is memory


optimized
contacto@learnIT.edu.pe

Training for future |

In Memory OLTP SQL Server 2014

contacto@learnIT.edu.pe

Training for future |


contacto@learnIT.edu.pe

Consultas?
Implementacin Base de Datos
MS SQL Server 2014

Training for future |


contacto@learnIT.edu.pe

Muchas Gracias
Implementacin Base de Datos
MS SQL Server 2014
Ing. Germn Cayo Morales
Microsoft MVP SQL Server
german.cayo@learnit.edu.pe

Das könnte Ihnen auch gefallen