SQL Server 2014
What’s new?
Purpose
High level overview of new features
NOT a deep dive
NOT a demo session
Where to learn more
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
Enhancements
In-Memory OLTP
Substantive change in database development
http://goo.gl/lirjxr
Affects tables, stored procs, server design
Enterprise Edition only
Hekaton
Hekaton
Hekaton
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
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
Hekaton
In Memory Table - DONT’s
Not all column types are supported (LOB’s)
No IDENTITY() (use SEQUENCE)
No ALTER TABLE
Index limitations
http://goo.gl/IwIMVR
Natively Compiled Stored Procedure
create 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
NCSP - DONT’s
No use of non-Hekaton tables
No CURSORs
No CASE; use IF instead
No OPEN…
http://goo.gl/IwIMVR
Server Design
256 GB “limitation” per database
More in-memory OLTP? Add more memory!
Two Sockets for CPU
64-Bit OS
No ALTER database to remove Hekaton
http://goo.gl/4wzAxv
Hekaton - deep dive
Several presentationsblogs
http://goo.gl/B1bUPB
http://goo.gl/VZmdA1
http://goo.gl/zAIbxG
http://goo.gl/00CCW6
SSD Buffer Pool Extension
Extend your existing buffer pool to SSD
NOT Hekaton compatible
Available in Standard & Enterprise editions
http://goo.gl/FwA5GE
Backup & Restore Enhancements
Encryption! (Compression works)
Backup to URL
Backup to Windows Azure
Azure integration
SQL Server data files in Windows Azure
SQL Server hosted in Azure VM
T-SQL enhancements
SELECT...INTO parallelism
Incline creation of indexes
CREATE 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
);
Business Intelligence
BIDS → SSDT-BI
Visual Studio 2012/2013 compatible
PowerView for MultiDimensional Models *
* introduced in SQL 2012 SP1
Is it worth the upgrade?
No real changes to licensing
Hekaton is compelling
● SSMS 2014 has AMR tool
● Determine if current application will benefit
Requires investment in appropriate hardware
Is it worth the upgrade?
SSD Buffer Pool is compelling
For non-Hekaton applications, can boost speed
Relatively easy to spin up
Integrates with Azure
Questions?
stuart@codegumbo.com
twitter: @codegumbo
What’s New in SQL Server 2012?
http://goo.gl/PkAL9

Sql server 2014 what's new-

  • 1.
  • 2.
    Purpose High level overviewof new features NOT a deep dive NOT a demo session Where to learn more
  • 3.
    About Me ● Managerof 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
  • 4.
  • 5.
    In-Memory OLTP Substantive changein database development http://goo.gl/lirjxr Affects tables, stored procs, server design Enterprise Edition only Hekaton
  • 6.
  • 7.
  • 8.
    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
  • 9.
    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
  • 10.
  • 11.
    In Memory Table- DONT’s Not all column types are supported (LOB’s) No IDENTITY() (use SEQUENCE) No ALTER TABLE Index limitations http://goo.gl/IwIMVR
  • 12.
    Natively Compiled StoredProcedure create 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
  • 13.
    NCSP - DONT’s Nouse of non-Hekaton tables No CURSORs No CASE; use IF instead No OPEN… http://goo.gl/IwIMVR
  • 14.
    Server Design 256 GB“limitation” per database More in-memory OLTP? Add more memory! Two Sockets for CPU 64-Bit OS No ALTER database to remove Hekaton http://goo.gl/4wzAxv
  • 15.
    Hekaton - deepdive Several presentationsblogs http://goo.gl/B1bUPB http://goo.gl/VZmdA1 http://goo.gl/zAIbxG http://goo.gl/00CCW6
  • 16.
    SSD Buffer PoolExtension Extend your existing buffer pool to SSD NOT Hekaton compatible Available in Standard & Enterprise editions http://goo.gl/FwA5GE
  • 17.
    Backup & RestoreEnhancements Encryption! (Compression works) Backup to URL Backup to Windows Azure
  • 18.
    Azure integration SQL Serverdata files in Windows Azure SQL Server hosted in Azure VM
  • 19.
    T-SQL enhancements SELECT...INTO parallelism Inclinecreation of indexes CREATE 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 );
  • 20.
    Business Intelligence BIDS →SSDT-BI Visual Studio 2012/2013 compatible PowerView for MultiDimensional Models * * introduced in SQL 2012 SP1
  • 21.
    Is it worththe upgrade? No real changes to licensing Hekaton is compelling ● SSMS 2014 has AMR tool ● Determine if current application will benefit Requires investment in appropriate hardware
  • 22.
    Is it worththe upgrade? SSD Buffer Pool is compelling For non-Hekaton applications, can boost speed Relatively easy to spin up Integrates with Azure
  • 23.