I have a 32-bit application running in 64-bit OS. The application is connecting to SQL Server data base using the DSN created with ODBC driver "SQL Server" (SQLSRV32.DLL, version 10.00). But I have one customer who enabled TLS1.2 in their windows environment which requires the upgrade of the ODBC driver to latest versions. When I created the DSN using the latest version of ODBC drivers (tried version 13, 17 and 18), the connectivity test is not successful.
I get different errors time to time. Some of the error messages are below
Microsoft ODBC Driver for SQL Server Version 14.00.2037
Running connectivity tests...
Attempting connection
[Microsoft][ODBC Driver 13 for SQL Server]Named Pipes Provider: Could not open a connection to SQL Server [2].
[Microsoft][ODBC Driver 13 for SQL Server]Login timeout expired
[Microsoft][ODBC Driver 13 for SQL Server]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.
TESTS FAILED!
It also a bit strange that the connection test works sometimes without any change. I think the basic issue is I'm creating a 32-bit DSN using "ODBC Data Source Administrator 32-bit" and using the ODBC driver 64 bit (which is what I can install in my 64-bit OS). If I use "ODBC Data Source Administrator 64-bit", everything works fine. But as my application is 32-bit I can't use this DSN.
Do I have any other option without migrating my application to 64-bit?