Windows authentication:
osql -S <SQL-SERVERNAME>\<INSTANCE>,1433 -E -Q "SELECT * FROM sysdatabases”
sa:
osql -S <SQL-SERVERNAME>\<INSTANCE>,1433 -U <user-name> -P <password> -Q "SELECT * FROM sysdatabases"
VAIM 12.9
SQL Server running on Windows 2016 Server
HKLM SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS1.0\Client
HKLM SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\ TLS1.0\Server
2. Reboot Server to make the changes.
Transport Layer Security (TLS) registry settings
https://docs.microsoft.com/en-us/windows-server/security/tls/tls-registry-settings