Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 3.29 KB

File metadata and controls

52 lines (36 loc) · 3.29 KB
title Configure compatible SQL Server features
description Configure compatible SQL Server features with Stretch Database
author MikeRayMSFT
ms.author mikeray
ms.reviewer randolphwest
ms.date 07/25/2022
ms.service sql-server-stretch-database
ms.topic conceptual
ms.custom seo-dt-2019

Configure compatible SQL Server features with Stretch Database

[!INCLUDE sqlserver2016-windows-only]

Important

Stretch Database is deprecated in [!INCLUDE sssql22-md]. [!INCLUDE ssNoteDepFutureAvoid-md]

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 back the remote data 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.