To enable SSL for the Data Provider, add Encryption=ssl; TrustedFile=<trusted
file>
to the ConnectionString property. AseConnection then
negotiates an SSL connection with the Adaptive Server server, for
example:
AseConnection.ConnectionString= "Data Source=MANGO;" + "Port = 5000;" + "Database=pubs2;" + "UID=sa;" + "PWD=sapass;" + "Encryption=ssl;" + "TrustedFile='c:\sybase\ini\trusted.txt';";
Adaptive Server must be configured to use SSL. For more information on SSL, see the Adaptive Server Enterprise System Administration Guide.