Sql server 2014 what's new-

23
SQL Server 2014 What’s new?

Transcript of Sql server 2014 what's new-

Page 1: Sql server 2014  what's new-

SQL Server 2014What’s new?

Page 2: Sql server 2014  what's new-

Purpose

High level overview of new featuresNOT a deep diveNOT a demo session

Where to learn more

Page 3: Sql server 2014  what's new-

About Me

● Manager of team of DBA’s for financial services company

● Former Data Architect, DBA, developer● Designed system that analyzes nearly 1

billion rows of data per day● AtlantaMDF Chapter Leader

Page 4: Sql server 2014  what's new-

Enhancements

Page 5: Sql server 2014  what's new-

In-Memory OLTPSubstantive change in database development

http://goo.gl/lirjxrAffects tables, stored procs, server design

Enterprise Edition only

Hekaton

Page 6: Sql server 2014  what's new-

Hekaton

Page 7: Sql server 2014  what's new-

Hekaton

Page 8: Sql server 2014  what's new-

In Memory Table-- create a durable (data will be persisted) memory-optimized table

-- two of the columns are indexed

CREATE TABLE dbo.ShoppingCart (

ShoppingCartId INT IDENTITY(1,1) PRIMARY KEY NONCLUSTERED,

UserId INT NOT NULL INDEX ix_UserId NONCLUSTERED HASH WITH

(BUCKET_COUNT=1000000) ,

CreatedDate DATETIME2 NOT NULL,

TotalPrice MONEY

) WITH (MEMORY_OPTIMIZED=ON)

GO

http://goo.gl/O8GNKt

Page 9: Sql server 2014  what's new-

In Memory Table/* create a non-durable table. Data will not be persisted, data loss if

the server turns off unexpectedly */

CREATE TABLE dbo.UserSession (

SessionId INT IDENTITY(1,1) PRIMARY KEY NONCLUSTERED HASH WITH

(BUCKET_COUNT=400000) ,

UserId INT,

INDEX ix_UserId NONCLUSTERED HASH (UserId) WITH (BUCKET_COUNT=400000)

)

WITH (MEMORY_OPTIMIZED=ON, DURABILITY=SCHEMA_ONLY)

http://goo.gl/MNfkwl

Page 10: Sql server 2014  what's new-

Hekaton

Page 11: Sql server 2014  what's new-

In Memory Table - DONT’s

Not all column types are supported (LOB’s)No IDENTITY() (use SEQUENCE)No ALTER TABLEIndex limitations

http://goo.gl/IwIMVR

Page 12: Sql server 2014  what's new-

Natively Compiled Stored Procedurecreate procedure dbo.OrderInsert(@OrdNo integer, @CustCode nvarchar(5))

with native_compilation, schemabinding, execute as owner

as

begin atomic with

(transaction isolation level = snapshot,

language = N'English')

declare @OrdDate datetime = getdate();

insert into dbo.Ord (OrdNo, CustCode, OrdDate) values (@OrdNo,

@CustCode, @OrdDate);

end

Page 13: Sql server 2014  what's new-

NCSP - DONT’s

No use of non-Hekaton tablesNo CURSORsNo CASE; use IF insteadNo OPEN…

http://goo.gl/IwIMVR

Page 14: Sql server 2014  what's new-

Server Design

256 GB “limitation” per databaseMore in-memory OLTP? Add more memory!Two Sockets for CPU64-Bit OSNo ALTER database to remove Hekatonhttp://goo.gl/4wzAxv

Page 15: Sql server 2014  what's new-

Hekaton - deep dive

Several presentations\blogshttp://goo.gl/B1bUPBhttp://goo.gl/VZmdA1http://goo.gl/zAIbxGhttp://goo.gl/00CCW6

Page 16: Sql server 2014  what's new-

SSD Buffer Pool Extension

Extend your existing buffer pool to SSDNOT Hekaton compatibleAvailable in Standard & Enterprise editions

http://goo.gl/FwA5GE

Page 17: Sql server 2014  what's new-

Backup & Restore Enhancements

Encryption! (Compression works)Backup to URLBackup to Windows Azure

Page 18: Sql server 2014  what's new-

Azure integration

SQL Server data files in Windows AzureSQL Server hosted in Azure VM

Page 19: Sql server 2014  what's new-

T-SQL enhancements

SELECT...INTO parallelismIncline creation of indexesCREATE TABLE dbo.SalesOrder

(

SalesOrderID INT IDENTITY(1,1),

CONSTRAINT PK_SalesOrder_SalesOrderID PRIMARY KEY CLUSTERED (SalesOrderID),

OrderNumber CHAR(8) NOT NULL,

-- [New] This will create a non-unique index on (OrderDate)

OrderDate DATE NOT NULL INDEX IX_SalesOrder_1 NONCLUSTERED

);

Page 20: Sql server 2014  what's new-

Business Intelligence

BIDS → SSDT-BIVisual Studio 2012/2013 compatiblePowerView for MultiDimensional Models ** introduced in SQL 2012 SP1

Page 21: Sql server 2014  what's new-

Is it worth the upgrade?

No real changes to licensingHekaton is compelling● SSMS 2014 has AMR tool● Determine if current application will benefitRequires investment in appropriate hardware

Page 22: Sql server 2014  what's new-

Is it worth the upgrade?

SSD Buffer Pool is compellingFor non-Hekaton applications, can boost speedRelatively easy to spin up

Integrates with Azure

Page 23: Sql server 2014  what's new-

Questions?

[email protected]: @codegumbo

What’s New in SQL Server 2012?http://goo.gl/PkAL9