ODBC Driver for SQL Server

SSL Connection to SQL Server via ODBC Driver

Connecting to SQL Server Using SSL

SSL (Secure Sockets Layer) is a standard protocol for secure access to a remote machine over untrusted networks. It runs on top of TCP/IP to secure client-server communications by allowing an SSL-enabled client to authenticate itself to an SSL-enabled server and vice versa. During server authentication, an SSL-enabled client application uses standard techniques of public-key cryptography to verify the server's identity by checking that the server's certificate is issued by a trusted certificate authority (CA) and proves the ownership of the public key.

Conversely, SSL client authentication allows the server to validate the client's identity. The client and server can also authenticate each other using self-signed certificates, however, you will almost never want to use a self-signed certificate, except for an Intranet or a development server. After establishing an SSL connection, the client and server can exchange messages that are symmetrically encrypted with the shared secret key. SSL is the recommended method to establish a secure connection to SQL Server due to easier configuration and higher performance, compared to SSH. See the SQL Server documentation for more information on how to enable SSL encryption for SQL Server .

To establish an SSL connection to SQL Server, enable the Use Encryption for Data option.

SQL Server SSL Connection

SSL Options



Use Encryption for Data

Enables SSL connections.

Sample SSL Connection String

DRIVER={Devart ODBC Driver for SQL Server};Data Source=TCP:myServer;Initial Catalog=myDatabase;Port=myPort;User ID=myUsername;Password=myPassword;Encryption=True

© 2015-2022 Devart. All Rights Reserved. Request Support ODBC Forum Provide Feedback