Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 3.26 KB

File metadata and controls

44 lines (35 loc) · 3.26 KB
description Configure compatible SQL Server features with Stretch Database
title Configure compatible SQL Server features
ms.date 03/14/2017
ms.service sql-server-stretch-database
ms.reviewer
ms.topic conceptual
ms.assetid c8121ede-1aec-459b-b7b0-1408bb3e62fb
author rothja
ms.author jroth
ms.custom seo-dt-2019

Configure compatible SQL Server features with Stretch Database

[!INCLUDE sqlserver2016-windows-only]

Take simple steps to configure the following SQL Server features to work with Stretch Database.

  • Always On
  • Always Encrypted
  • Transparent Data Encryption (TDE)
  • Temporal tables

Configure Always On with Stretch Database

If you're using Always On with Stretch Database, you have to make sure that the database master key is available on the secondary replicas. Stretch Database uses the database master key to secure the credentials that it uses to connect to the remote Azure database.

After you set up the Always On availability group, run the stored procedure sp_control_dbmasterkey_password on each secondary replica and provide the password for the Stretch-enabled database. For more info and examples, see sp_control_dbmasterkey_password.

Configure Always Encrypted with Stretch Database

If you want to use Always Encrypted and Stretch Database together, you have to configure encryption on the selected columns before you enable Stretch Database on the table.

If you have already enabled Stretch Database on the table, and you want to use Always Encrypted columns, you have to do the following things.

  1. Disable Stretch Database on the table and bring the remote data back from Azure. For more info, see Disable Stretch Database and bring back remote data.
  2. Configure Always Encrypted on the selected columns.
  3. Re-enable Stretch Database on the table. For more info, see Enable Stretch Database for a database.

Configure Transparent Data Encryption (TDE) with Stretch Database

If TDE is enabled on your local database, it will not be automatically enabled on the Stretch database remote endpoint. You must remember to enable TDE on the remote endpoint after enabling Stretch on your database.

Configure temporal tables with Stretch Database

If you're using temporal tables, you can enable Stretch Database on the history table, but not on the current table.