in reply to Moving from SQL Server to ODBC Driver 17 for SQL Server
Adding the following solved the connection issue: