Skip to content

Commit 7a4aecd

Browse files
Merge pull request #34629 from Pietervanhove/SQLConnector
SQL Connector upgrade
2 parents 7cc1404 + f90649a commit 7a4aecd

File tree

2 files changed

+42
-19
lines changed

2 files changed

+42
-19
lines changed

docs/relational-databases/security/encryption/sql-server-connector-maintenance-troubleshooting.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ Versions 1.0.0.440 and older have been replaced and are no longer supported in p
4646
1. Start SQL Server service.
4747
1. Test encrypted databases are accessible.
4848

49+
If your database is in a `RECOVERY PENDING` state, you need to run an `ALTER` command on the cryptographic provider. Replace *AzureKeyVault_EKM* with the name of your actual cryptographic provider, which you can find in the [sys.cryptographic_providers](../../../relational-databases/system-catalog-views/sys-cryptographic-providers-transact-sql.md) system view.
50+
51+
``` sql
52+
ALTER CRYPTOGRAPHIC PROVIDER AzureKeyVault_EKM DISABLE;
53+
ALTER CRYPTOGRAPHIC PROVIDER AzureKeyVault_EKM FROM FILE = 'C:\Program Files\SQL Server Connector for Microsoft Azure Key Vault\Microsoft.AzureKeyVaultService.EKM.dll';
54+
ALTER CRYPTOGRAPHIC PROVIDER AzureKeyVault_EKM ENABLE;
55+
```
56+
Restart the SQL Server service after modifying the cryptographic provider.
57+
4958
### Rollback
5059

5160
1. Stop SQL Server service using **SQL Server Configuration Manager**.

docs/relational-databases/security/encryption/sql-server-connector-registry-modification.md

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: This article describes enabling errors and logging for SQL Server C
44
author: VanMSFT
55
ms.author: vanto
66
ms.reviewer: vanto
7-
ms.date: 08/23/2021
7+
ms.date: 07/08/2025
88
ms.service: sql
99
ms.subservice: security
1010
ms.topic: how-to
@@ -27,44 +27,58 @@ Use the [Azure Key Vault forum](https://social.msdn.microsoft.com/Forums/AzureKe
2727
2828
## Upgrade SQL Server Connector to the latest version
2929

30-
To upgrade the SQL Server Connector (Version: 1.0.5.0 with a Date Published: September 2020) to the latest version DLL Crypto provider, follow these steps.
30+
To upgrade the SQL Server Connector (Version: 1.0.5.0 with a Date Published: January 2025) to the latest version DLL Crypto provider, follow these steps.
3131

3232
### Upgrade
3333

34-
1. Stop SQL Server service using SQL Server Configuration Manager
35-
1. Uninstall the old version using **Control Panel\Programs\Programs and Features**
34+
1. Stop SQL Server service using **SQL Server Configuration Manager**.
35+
1. Uninstall the old version using **Control Panel** > **Programs** > **Programs and Features**.
3636
1. Application name: SQL Server Connector for Microsoft Azure Key Vault
37-
1. Version: 15.0.300.96 (original 1.0.5.0 version)
38-
1. DLL file date: 01/30/2018 3:00 PM
39-
1. Install (upgrade) new SQL Server Connector for Microsoft Azure Key Vault
40-
1. Version: 15.0.2000.440 (or latest version)
41-
1. DLL file date: 09/11/2020 ‏‎5:17 AM (or later)
42-
1. Start SQL Server service
43-
1. Test encrypted DB(s) is/are accessible
37+
1. Version: 15.0.300.96 (or older)
38+
1. DLL file date: January 30 2018 (or older)
39+
1. Install (upgrade) new SQL Server Connector for Microsoft Azure Key Vault.
40+
1. Version: 15.0.2000.440
41+
1. DLL file date: November 9 2024
42+
1. Start SQL Server service.
43+
1. Test encrypted databases are accessible.
44+
45+
If your database is in a `RECOVERY PENDING` state, you need to run an `ALTER` command on the cryptographic provider. Replace *AzureKeyVault_EKM* with the name of your actual cryptographic provider, which you can find in the [sys.cryptographic_providers](../../../relational-databases/system-catalog-views/sys-cryptographic-providers-transact-sql.md) system view.
46+
47+
``` sql
48+
ALTER CRYPTOGRAPHIC PROVIDER AzureKeyVault_EKM DISABLE;
49+
ALTER CRYPTOGRAPHIC PROVIDER AzureKeyVault_EKM FROM FILE = 'C:\Program Files\SQL Server Connector for Microsoft Azure Key Vault\Microsoft.AzureKeyVaultService.EKM.dll';
50+
ALTER CRYPTOGRAPHIC PROVIDER AzureKeyVault_EKM ENABLE;
51+
```
52+
Restart the SQL Server service after modifying the cryptographic provider.
4453

4554
### Rollback
4655

47-
1. Stop SQL Server service using SQL Server Configuration Manager
48-
1. Uninstall the new version using **Control Panel\Programs\Programs and Features**
56+
1. Stop SQL Server service using **SQL Server Configuration Manager**.
57+
1. Uninstall the new version using **Control Panel** > **Programs** > **Programs and Features**.
4958
1. Application name: SQL Server Connector for Microsoft Azure Key Vault
5059
1. Version: 15.0.2000.440
51-
1. DLL file date: 09/11/2020 ‏‎5:17 AM
52-
1. Install old version of SQL Server Connector for Microsoft Azure Key Vault
60+
1. DLL file date: November 9 2024
61+
62+
1. Install old version of SQL Server Connector for Microsoft Azure Key Vault.
5363
1. Version: 15.0.300.96
54-
1. DLL file date: 01/30/2018 3:00 PM
55-
1. Start SQL Server service
56-
1. Test encrypted DB(s) is/are accessible
64+
1. DLL file date: January 30 2018
65+
1. Start SQL Server service.
66+
1. Check that the databases using TDE are accessible.
67+
68+
1. After validating that the update works, you can delete the old [!INCLUDE [ssNoVersion](../../../includes/ssnoversion-md.md)] **Connector** folder (if you chose to rename it instead of uninstalling in Step 3).
5769

5870
> [!NOTE]
5971
> - SQL Server Connector versions 1.0.0.440 and older have been replaced and are no longer supported in production environments. For more information on troubleshooting SQL Server Connector issues, see [SQL Server Connector Maintenance & Troubleshooting](../../../relational-databases/security/encryption/sql-server-connector-maintenance-troubleshooting.md).
6072
> - Starting with version 1.0.3.0, the SQL Server Connector reports relevant error messages to the Windows event logs for troubleshooting.
6173
> - Starting with [1.0.4.0: (version 13.0.811.168)](https://download.microsoft.com/download/8/0/9/809494f2-bac9-4388-ad07-7eaf9745d77b/SQL%20Server%20Connector%20for%20Microsoft%20Azure%20Key%20Vault%201.0.4.0.msi), there is support for private Azure clouds, including Azure operated by 21Vianet, Azure Germany, and Azure Government.
6274
> - There is a breaking change in version 1.0.5.0 in terms of the thumbprint algorithm. You may experience database restore failures after upgrading to 1.0.5.0. For more information, see [Error 33111 when restoring backups from older versions of SQL Server Connector for Microsoft Azure Key Vault](/troubleshoot/sql/database-engine/backup-restore/error-33111-restore-issues-sql-connector).
63-
> - **Starting with version [1.0.5.0 (with a file date of September 2020)](https://www.microsoft.com/en-us/download/details.aspx?id=45344), the SQL Server Connector supports filtering messages and network request retry logic.**
75+
> - Starting with version [1.0.5.0 (with a file date of September 2020)](https://www.microsoft.com/en-us/download/details.aspx?id=45344), the SQL Server Connector supports filtering messages and network request retry logic.
76+
> - Starting with version [1.0.5.0 (with a file date of November 2024)](https://www.microsoft.com/en-us/download/details.aspx?id=45344) and SQL Server 2022 CU17 and later versions., the SQL Server Connector supports authentication with Azure Key Vault using managed identity for SQL Server on Azure Virtual Machines.
6477
> - *The old version of the SQL Server Connector is also version: [1.0.5.0 (version 15.0.300.96) – File date January 2018](https://download.microsoft.com/download/8/0/9/809494f2-bac9-4388-ad07-7eaf9745d77b/1033_15.0.2000.367/SQLServerConnectorforMicrosoftAzureKeyVault.msi)*. Upgrade to the newest SQL Server Connector if you experience any issues.
6578
6679
**System Requirements** - Supported SQL Server versions:
6780

81+
- SQL Server 2022 RTM Enterprise or Standard 64-bit
6882
- SQL Server 2019 RTM Enterprise or Standard 64-bit
6983
- SQL Server 2017 RTM Enterprise 64-bit
7084
- SQL Server 2016 RTM Enterprise 64-bit

0 commit comments

Comments
 (0)