This error occurs when the client TLS version used by the pymssql library is lower than the minimum TLS version allowed by the SQL Server you are trying to connect to.
To resolve this error, you can try the following steps:
Upgrade the pymssql library to the latest version using pip install --upgrade pymssql.
Set the SSL version to be used for encryption to a higher version by specifying the ssl parameter when creating a connection to the SQL Server. For example, you can set it to ssl='TLSv1.2'.
Here's an example of how to set the ssl parameter when creating a connection to the SQL
import pymssql