Does Transparent Data Encryption (TDE) work on databases configured with Transactional Replication?

Melin Guaringa, Charlie Stephano 21 Reputation points
2023-08-14T01:55:28.3466667+00:00

HI, I have the following query:

Does Transparent Data Encryption (TDE) work on databases configured with Transactional Replication? If true, what considerations should be taken when implementing this?

SQL Server | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Erland Sommarskog 121.9K Reputation points MVP Volunteer Moderator
    2023-08-14T21:08:42.8166667+00:00

    I have not tested. Nor do I actually know. But if it does not work, I would be very very surprised. The point with TDE is that once you are authenticated to the database, the encryption is indeed transperant to you.

    The one thing I like to point out is that you should probably configure the subscribers for TDE as well. Not that there is any such requirement, but it would be kind of funny to have them unencrypted.

    0 comments No comments

  2. LiHongMSFT-4306 31,571 Reputation points
    2023-08-15T02:01:57.0766667+00:00

    Hi @Melin Guaringa, Charlie Stephano

    Replication doesn't automatically replicate data from a TDE-enabled database in an encrypted form. Separately enable TDE if you want to protect distribution and subscriber databases.

    Snapshot replication can store data in unencrypted intermediate files like BCP files. The initial data distribution for transactional and merge replication can too. During such replication, you can enable encryption to protect the communication channel.

    For more information, see Enable Encrypted Connections to the Database Engine (SQL Server Configuration Manager).

    Best regards,

    Cosmog Hong


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.