--- title: "1802 Why am I getting SDDB error SQLAllocHandle on SQL_HANDLE_ENC failed" slug: "1802" updated: 2026-02-04T14:13:09Z published: 2026-02-06T14:07:30Z canonical: "documentation.winmagic.com/1802" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.winmagic.com/llms.txt > Use this file to discover all available pages before exploring further. # 1802 Why am I getting SDDB error SQLAllocHandle on SQL_HANDLE_ENC failed **Environment Info :** | **Windows Server 2016** | **SQL Server 2017 Express** | | --- | --- | | **ODBC Driver Ver. 2017 - 171.00.01** | | **Problem Scenario** **1.** When attempting to open your Securedoc Console, the following error is observed: *Unable to find a connection to the database. Please select another server and database or create a new connection.* **e.g.** ![A screenshot of a computer AI-generated content may be incorrect.](https://cdn.ca.document360.io/93ef9a31-472b-4830-81aa-76199c390cf4/Images/Documentation/1802-image-pc3s20fc.jpg) **2.** Also you may notice that when launching SecureDoc and attempting to connect to your SQL Server, the following error is observed: *Error connecting to the database "Driver's SQLAllocHandle on SQL_HANDLE_ENC failed*. ***e.g.*** ![A screenshot of a computer AI-generated content may be incorrect.](https://cdn.ca.document360.io/93ef9a31-472b-4830-81aa-76199c390cf4/Images/Documentation/1802-image-qisw2df0.jpg) **Probable Cause :** The anomaly reported may have occurred as a result of an update of ODBC Driver 17 for SQL Server. It’s likely was triggered from an upgrade from version 17.x.x.x to to 17.3.1.1. ![A screenshot of a computer error AI-generated content may be incorrect.](https://cdn.ca.document360.io/93ef9a31-472b-4830-81aa-76199c390cf4/Images/Documentation/1802-image-apzrmgyi.jpg) For additional reference discussion, please refer to the following url: [https://social.msdn.microsoft.com/Forums/sqlserver/en-US/9c239b91-5a34-4aa2-9442-5a713c225db4/odbc-driver-17201-does-not-work-on-server-2016-drivers-sqlallochandle-on-sqlhandleenv-failed?forum=sqldataaccess](https://social.msdn.microsoft.com/Forums/sqlserver/en-US/9c239b91-5a34-4aa2-9442-5a713c225db4/odbc-driver-17201-does-not-work-on-server-2016-drivers-sqlallochandle-on-sqlhandleenv-failed?forum=sqldataaccess) **Proposed Solution** Please ***uninstall*** your **Microsoft ODBC Drive 17 for SQL Server** ***Open* Control Panel** - > **Programs** -> **Programs and Features**. ***![A screenshot of a computer AI-generated content may be incorrect.](https://cdn.ca.document360.io/93ef9a31-472b-4830-81aa-76199c390cf4/Images/Documentation/1802-image-kt7srds7.jpg)*** ***Download*** and ***Install*** **Microsoft ODBC Drive 17 for SQL Server Version 17.3.1.1** **Link:** [https://www.microsoft.com/en-us/download/details.aspx?id=56567](https://www.microsoft.com/en-us/download/details.aspx?id=56567) **![A screenshot of a computer error AI-generated content may be incorrect.](https://cdn.ca.document360.io/93ef9a31-472b-4830-81aa-76199c390cf4/Images/Documentation/1802-image-wue8eywl.jpg)** **Upon completion** - You can retry login to your SES Console. ![A screenshot of a computer AI-generated content may be incorrect.](https://cdn.ca.document360.io/93ef9a31-472b-4830-81aa-76199c390cf4/Images/Documentation/1802-image-i84tbkwe.jpg)