Hi,
check to the breaking changes (Encrypt = true; by default) with ODBC driver 18
May be you need to add TrustServerCertificate=true
to your connection string; or set Encrypt=false.
https://stackoverflow.com/questions/71688125/odbc-driver-18-for-sql-serverssl-provider-error1416f086
Regards