Skip to content

Commit 9f9bbea

Browse files
committed
Fix T-SQL example code
1 parent de2b9dd commit 9f9bbea

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/relational-databases/replication/codesnippet/tsql/replicate-data-in-encryp_1.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ GO
3737
-- Insert encrypted data from the CreditCardApprovalCode column.
3838
UPDATE Sales.SalesOrderHeader
3939
SET EncryptedCreditCardApprovalCode
40-
= EncryptByKey(Key_GUID('key_DataShare'), CreditCardApprovalCode);
40+
= EncryptByKey(Key_GUID('key_ReplDataShare'), CreditCardApprovalCode);
4141
GO
4242

4343
CLOSE SYMMETRIC KEY [key_ReplDataShare];

docs/relational-databases/replication/codesnippet/tsql/replicate-data-in-encryp_3.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ IF NOT EXISTS (SELECT * FROM sys.certificates
1515
CREATE CERTIFICATE [cert_keySubscriber]
1616
WITH SUBJECT = 'Subscriber Key Protection';
1717

18-
-- Create the key_DataShare symmetric key if it doesn't exist.
18+
-- Create the key_ReplDataShare symmetric key if it doesn't exist.
1919
IF NOT EXISTS (SELECT * FROM sys.symmetric_keys
2020
WHERE [name] = 'key_ReplDataShare')
2121
CREATE SYMMETRIC KEY [key_ReplDataShare] WITH

0 commit comments

Comments
 (0)