23
Choirul Amri Senior Consultant, Microsoft Services INDONESIA What’s New in SQL Server 2012

Choirul Amri - SQL Server 2012 - New Features

Embed Size (px)

Citation preview

Page 1: Choirul Amri - SQL Server 2012 - New Features

Choirul AmriSenior Consultant, Microsoft Services

INDONESIA

What’s New in SQL Server 2012

Page 2: Choirul Amri - SQL Server 2012 - New Features

Agenda

High AvailabilityReporting and AnalyticPerformance

Page 3: Choirul Amri - SQL Server 2012 - New Features

SQL Server 2012

High Availability

Page 4: Choirul Amri - SQL Server 2012 - New Features

Alwayson Availability GroupsEnhanced capabilities of database mirroring• Simplified application connectivity and automatic redirection• Built in compression and encryption• Synchronous or asynchronous data movement• Support for FILESTREAM, FILETABLE, RBS and Service Broker• Built on top of Windows Server Failover Cluster

Active secondary• Readable secondary replicas• Backup from secondary

• Transaction log backups, plus COPY_ONLY full backups

Page 5: Choirul Amri - SQL Server 2012 - New Features

AlwaysOn Availability GroupsAlwaysOn Availability Groups is a new feature that enhances and combines database mirroring and log shipping capabilities

Multi-database failoverMultiple secondaries

Total of 4 secondaries2 synchronous secondaries1 automatic failover pair

Synchronous and asynchronous data movementBuilt in compression and encryptionAutomatic and manual failoverFlexible failover policyAutomatic Page Repair

Application failover using virtual nameConfiguration WizardDashboardSystem Center IntegrationRich diagnostic infrastructure

File-stream replicationReplication publisher failover

Flexible Integrated Efficient

Active SecondaryReadable SecondaryBackup from SecondaryAutomation using power-shell

Page 6: Choirul Amri - SQL Server 2012 - New Features

Availability Group Listener

• Windows Server Failover Clustering provides a virtual name for the Availability Group Listener

• Availability Group Listener runs on the current primary node in the Availability Group• Seamless failover similar to traditional SQL Server failover

clustering• Read only intent connections are automatically redirected

to a readable secondary

Page 7: Choirul Amri - SQL Server 2012 - New Features

A Flexible Solution

• AlwaysOn provides the flexibility of different HA configurations

Synchronous Data Movement

Asynchcronous Data Movement

Shared Storage, regional and geo secondaries

A

AA

A

A

Direct attached storage local, regional and geo target

AA

Page 8: Choirul Amri - SQL Server 2012 - New Features

demo

AlwaysOn Availability Groups

Page 9: Choirul Amri - SQL Server 2012 - New Features

Contained database Authentication

• Partially contained databases, making the database more independent from the instance of SQL Server

• There are two types of users for contained databases• Contained database user with a password that are

authenticated by the database• Windows Principals can connect directly to the database

Page 10: Choirul Amri - SQL Server 2012 - New Features

SQL Server 2012

Database Performance

Page 11: Choirul Amri - SQL Server 2012 - New Features

Columnstore Index Column store in SQL Server

– New type of index New query processing mode

– Processes data in batches Accelerates targeted workloads

– Data warehousing• Read mostly, large data volumes, star schema, often sliding window

– Typical data warehouse queries• Star joins, aggregations, filtering

Page 12: Choirul Amri - SQL Server 2012 - New Features

Defining the Columnstore Index

Index type– Columnstore indexes are always non-clustered and non-unique– They cannot be created on views, indexed views, sparse columns– They cannot act as primary or foreign key constraints

Column selection– Unlike other index types, there are no “key columns”

• Instead you choose the columns that you anticipate will be used in your queries• Up to 1,024 columns – and the ordering in your CREATE INDEX doesn’t matter• No concept of “INCLUDE”• No 900 byte index key size limit

Column ordering– Use of ASC or DESC sorting not allowed – as ordering is defined via

columnstore compression algorithms

12

Page 13: Choirul Amri - SQL Server 2012 - New Features

demo

Database Performance

Columnstore Index

Page 14: Choirul Amri - SQL Server 2012 - New Features

Table Partitioning Enhancement

You need to partition data by day for 3 years of data or more? In SQL Server 2008 & SQL Server 2008 R2

• Limited to 1,000• Unless you installed 2008 SP2 or 2008 R2 SP1• This prevented moving from 2008 SP2 to 2008 R2 RTM • Created other restrictions for Log Shipping, Database

Mirroring, Replication, SSMS manageability

In SQL Server 2012• 15,000 partitions are supported in RTM (no SP required)

14

Page 15: Choirul Amri - SQL Server 2012 - New Features

demo

Database Performance

Table Partitioning

Page 16: Choirul Amri - SQL Server 2012 - New Features

Other new features for performance

• Faster Spatial Performance• Paging for Result Sets• Partitioning• Faster Full Text Search• Column Store Index• Distributed Replay

Page 17: Choirul Amri - SQL Server 2012 - New Features

SQL Server 2012

Reporting and Analytics

Page 18: Choirul Amri - SQL Server 2012 - New Features

Denali Reporting and Alerting

• Enabled as SharePoint Shared Service

• Built-in scale-out for RS Service Apps

• SharePoint Cross-farm reporting

• Integrated backup & recovery, ULS logging, PowerShell etc.

• End User Alerting

• Defined from within operational or ad-hoc reports

• Intuitive Alert rules

• Alerts self-managed through SharePoint

• PowerView Reporting

• Highly visual design experience

• Rich metadata-driven interactivity

• Presentation-ready at all times

Increase efficiencyProactive Intelligence

Managed Self Service BI – Corporate BI

Empower users

Page 19: Choirul Amri - SQL Server 2012 - New Features

Reporting ServicesSelf Service Alerting – User-defined

• Report authors control which data is available for alerting

• Users create alerts directly on the data they see in reports

• Supports reports created in Report Builder or BI Development Studio (BIDS)

Create data alerts from within reports

• Intuitive Alert Rules (greater than, before/after)

• Easy to use scheduling (weekly, daily, monthly)

• Relevant data included in Alert Message

Detect important data changes

Source: Data.gov - Data.gov and the Federal Government cannot vouch for the data or analyses derived from these data after the data have been retrieved from Data.gov.

Page 20: Choirul Amri - SQL Server 2012 - New Features

Self Service Alerting - Management

• Per site administration reduces IT burden• Fine grained authorization• Self-managed through SharePoint• IT Visibility & Control of user-defined alerts

Managed through SharePoint

Page 21: Choirul Amri - SQL Server 2012 - New Features

demo

Analytic Reporting

PowerView aka “Crescent”

Page 23: Choirul Amri - SQL Server 2012 - New Features

Thank You