You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/relational-databases/security/encryption/sql-server-connector-maintenance-troubleshooting.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,15 @@ Versions 1.0.0.440 and older have been replaced and are no longer supported in p
46
46
1. Start SQL Server service.
47
47
1. Test encrypted databases are accessible.
48
48
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
+
49
58
### Rollback
50
59
51
60
1. Stop SQL Server service using **SQL Server Configuration Manager**.
Copy file name to clipboardExpand all lines: docs/relational-databases/security/encryption/sql-server-connector-registry-modification.md
+33-19Lines changed: 33 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: This article describes enabling errors and logging for SQL Server C
4
4
author: VanMSFT
5
5
ms.author: vanto
6
6
ms.reviewer: vanto
7
-
ms.date: 08/23/2021
7
+
ms.date: 07/08/2025
8
8
ms.service: sql
9
9
ms.subservice: security
10
10
ms.topic: how-to
@@ -27,44 +27,58 @@ Use the [Azure Key Vault forum](https://social.msdn.microsoft.com/Forums/AzureKe
27
27
28
28
## Upgrade SQL Server Connector to the latest version
29
29
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.
31
31
32
32
### Upgrade
33
33
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**.
36
36
1. Application name: SQL Server Connector for Microsoft Azure Key Vault
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.
44
53
45
54
### Rollback
46
55
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**.
49
58
1. Application name: SQL Server Connector for Microsoft Azure Key Vault
50
59
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.
53
63
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).
57
69
58
70
> [!NOTE]
59
71
> - 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).
60
72
> - Starting with version 1.0.3.0, the SQL Server Connector reports relevant error messages to the Windows event logs for troubleshooting.
61
73
> - 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.
62
74
> - 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.
64
77
> -*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.
65
78
66
79
**System Requirements** - Supported SQL Server versions:
67
80
81
+
- SQL Server 2022 RTM Enterprise or Standard 64-bit
68
82
- SQL Server 2019 RTM Enterprise or Standard 64-bit
0 commit comments