Microsoft Ignite NZ 25-28 October 2016 SKYCITY, Auckland
Mission Critical Hybrid scenarios with SQL Server 2016 Microsoft Ignite 2016 11/19/2018 4:09 PM Mission Critical Hybrid scenarios with SQL Server 2016 M232 Lonnye Bower lonnyeb@microsoft.com © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
11/19/2018 4:09 PM What we’ll cover today What’s New for SQL Server 2016 Mission Critical? AlwaysOn Enhancements Stretch Database Backups to Azure SQL Server Data Files in Azure © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
SQL Server 2016 Hybrid Mission Critical Deployments 11/19/2018 4:09 PM SQL Server 2016 Hybrid Mission Critical Deployments © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Hybrid Mission Critical Deployments 11/19/2018 4:09 PM Hybrid Mission Critical Deployments No Domain? No problem! Workgroup clusters are supported. Need more than one automatic failover replica? Have 3! We’ve also increased the number of replicas to 8. Need a replica in Azure (IaaS)? SQL Server 2016 supports an Azure VM replica! © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
AlwaysOn Enhancements 11/19/2018 4:09 PM AlwaysOn Enhancements © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
AlwaysOn Enhancements 11/19/2018 4:09 PM AlwaysOn Enhancements Basic HA in Standard edition Support for group-managed service accounts Database-level failover Support for Distributed Transactions (DTC) Round-robin load balancing in readable secondaries Increased number of auto-failover targets Encrypted Databases Support in AG Wizard © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Define a load-balancing replica list 11/19/2018 4:09 PM Define a load-balancing replica list READ_ONLY_ROUTING_LIST = (('Server1','Server2'), 'Server3', 'Server4') Note: only one set of nested parentheses is supported at this time © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Other Mission Critical Enhancements 11/19/2018 4:09 PM Other Mission Critical Enhancements © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Other Mission Critical Enhancements 11/19/2018 4:09 PM Other Mission Critical Enhancements Rolling cluster OS upgrades Basic HA in Standard edition Site-aware failover clusters © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Stretch Database 11/19/2018 4:09 PM © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Stretch Database Store cold data in Azure 11/19/2018 4:09 PM Stretch Database Store cold data in Azure No changes to queries/applications Reduce on-prem database maintenance Multiple replicas (Like Azure SQL DB) Ability to pause/resume © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Stretch Database Limitations 11/19/2018 4:09 PM Stretch Database Limitations Tables with more than 1023 columns Memory-optimized tabled CLR data types Constraints: Check, Default Computed columns © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Demo: Stretching a database (in and out) Microsoft Ignite 2016 11/19/2018 4:09 PM Demo: Stretching a database (in and out) © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Enabling SQL Server instance for Stretch Database 11/19/2018 4:09 PM Enabling SQL Server instance for Stretch Database EXEC sp_configure 'remote data archive', '1'; GO RECONFIGURE; © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Configuring a database for Stretch Database 11/19/2018 4:09 PM Configuring a database for Stretch Database USE <database>; GO CREATE MASTER KEY ENCRYPTION BY PASSWORD='<password>'; © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
11/19/2018 4:09 PM Stretching a Database CREATE DATABASE SCOPED CREDENTIAL <db_scoped_credential_name> WITH IDENTITY = '<identity>' , SECRET = '<secret>' ; GO ALTER DATABASE <database name> SET REMOTE_DATA_ARCHIVE = ON ( SERVER = '<server_name>' , CREDENTIAL = <db_scoped_credential_name> ) ; © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Enabling Stretch Database for a table 11/19/2018 4:09 PM Enabling Stretch Database for a table USE <Stretch-enabled database name>; GO ALTER TABLE <table name> SET ( REMOTE_DATA_ARCHIVE = ON ( MIGRATION_STATE = OUTBOUND ) ) ; © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Pausing/resuming data migration 11/19/2018 4:09 PM Pausing/resuming data migration USE <Stretch-enabled database name>; GO ALTER TABLE <Stretch-enabled table name> SET ( REMOTE_DATA_ARCHIVE ( MIGRATION_STATE = PAUSED ) ) ; MIGRATION_STATE = OUTBOUND © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Disabling Stretch - Table (Keeping Data) 11/19/2018 4:09 PM Disabling Stretch - Table (Keeping Data) USE <Stretch-enabled database name>; GO ALTER TABLE <Stretch-enabled table name> SET ( REMOTE_DATA_ARCHIVE ( MIGRATION_STATE = INBOUND ) ) ; Note: This cannot be canceled. Note: Clean up Stretch Database in Azure © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Disabling Stretch - Table (Abandoning Data) 11/19/2018 4:09 PM Disabling Stretch - Table (Abandoning Data) USE <Stretch-enabled database name>; GO ALTER TABLE <Stretch-enabled table name> SET ( REMOTE_DATA_ARCHIVE = OFF_WITHOUT_DATA_RECOVERY ( MIGRATION_STATE = PAUSED ) ) ; Note: This cannot be canceled. Note: Clean up Stretch Database in Azure © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Disabling Stretch Database 11/19/2018 4:09 PM Disabling Stretch Database ALTER DATABASE <Stretch-enabled database name> SET REMOTE_DATA_ARCHIVE = OFF ; GO Note: This does not delete the remote database. © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
11/19/2018 4:09 PM Backups To Azure © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Backups To Azure Same options as Azure storage accounts LRS, GRS 11/19/2018 4:09 PM Backups To Azure Same options as Azure storage accounts LRS, GRS Redundancy built-in No longer need to provision/manage storage for backups Secure (perhaps more than SAN/other media) Off-site transfer no longer needed (tapes via truck) Striping backups supported © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Demo: Backing up to Azure Storage Microsoft Ignite 2016 11/19/2018 4:09 PM Demo: Backing up to Azure Storage © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Backup To URL BACKUP DATABASE AdventureWorks2016 11/19/2018 4:09 PM Backup To URL BACKUP DATABASE AdventureWorks2016 TO URL = 'https://<mystorageaccountname>.blob.core.windows.net/<mycontainername>/AdventureWorks2016.bak'; GO © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
SQL Server Data Files in Azure 11/19/2018 4:09 PM SQL Server Data Files in Azure © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
SQL Server Data Files in Azure 11/19/2018 4:09 PM SQL Server Data Files in Azure Simplifies hardware moves & migrations Redundancy built-in Low costs Low maintenance Reduces need for capacity planning Nearly instantaneous backups via snapshot backup © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Demo: Databases with files in Azure Storage Microsoft Ignite 2016 11/19/2018 4:09 PM Demo: Databases with files in Azure Storage © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Creating a database with data files in Azure 11/19/2018 4:09 PM Creating a database with data files in Azure CREATE DATABASE YourDBName ON ( NAME = YourDBName_dat, FILENAME = 'https://YourStorage.blob.core.windows.net/Container/YourDBName.mdf' ) LOG ON ( NAME = YourDBName_log, FILENAME = 'https://YourStorage.blob.core.windows.net/Container/YourDBName_log.ldf') © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
11/19/2018 4:09 PM Summary © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
11/19/2018 4:09 PM Resources Workgroup and Non-Domain Joined Clusters - http://bit.ly/Win2016Cluster Rolling Cluster Upgrades - http://bit.ly/RollingOS2016 SQL Server Data Files in Azure - http://bit.ly/SQLDataFilesInAzure SQL Server Data Files in Azure Tutorial - http://bit.ly/SQLDataFilesAzureTutorial © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Other SQL Server Sessions 11/19/2018 4:09 PM Other SQL Server Sessions Session Speaker Time Room Build modern Enterprise BI Solutions using SSRS 2016 [M238] Anupama Natarajan Thur 27 Oct, 1:40pm Ballroom Two (Crowne Plaza) Boom! Compelling visualisations with SQL Server [M374] Rob Hawthorne Thur 27 Oct, 4:15pm Enhancements in SQL Server Management Studio (SSMS) in SQL Server 2016 [M381] Lonnye Bower Fri 28 Oct, 9:00am NZ Room 3 Beyond T-SQL: non-relational features in SQL Server 2016 [M384] David Lyth Fri 28 Oct, 10:30am © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
11/19/2018 4:09 PM Q&A Questions after the session? lonnyeb@microsoft.com Thank you for your time today! ~LB © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
11/19/2018 4:09 PM © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.