Error when using encryption
Posted: Wed 18 Jan 2012 21:51
Version 6.0.2 for Delphi 2007.
Running against SQL Server 2008 R2
Receive error:
Running against SQL Server 2008 R2
Code: Select all
object sqlConn: TMSConnection
Options.NumericType = ntBCD
Options.Encrypt = True
Options.LocalFailover = True
LoginPrompt = False
OnConnectionLost = sqlConnConnectionLost
Left = 32
Top = 24
end
sqlConn.Connected := False;
sqlConn.ConnectString :=
'Provider=SQLOLEDB.1;User ID=%s;Application Name=MyApp;Password=%s;Data Source=%s;Initial Catalog=%s';
sqlConn.Options.Provider := prSQL;
sqlConn.ConnectionTimeout := 5;
sqlConn.Options.Encrypt := True;
sqlConn.Connect;
Project MyProject.exe raised exception class EMSError with message '[DBNETLIB][ConnectionOpen (SECDoClientHandshake()).]SSL Security error.'.