Specifies "Optional", "Manadatory", and "Strict" values for Encrypt Connection to the SQL Server.
property MSOLEDBEncryptType: TMSOLEDBEncryptType;
The MSOLEDBEncryptType property is of the TMSOLEDBEncryptType type. It supports encryption values that correspond to the SQL Server native "Optional", "Mandatory", and "Strict" settings.
MSOLEDBEncryptType is used only with the OLE DB Driver 19 for SQL Server and works in conjunction with the Encrypt option.
Use the following combinations of MSOLEDBEncryptType and Encrypt to configure encryption correctly:
Example of using "MSOLEDBEncryptType = etStrict" with SQL Server's Force Strict Encryption enabled:
... uses ..., MSClasses; ... MSConnection1.Options.Provider := prMSOLEDB; MSConnection1.Options.MSOLEDBVersion := ole19; MSConnection1.Options.Encrypt := True; MSConnection1.Options.MSOLEDBEncryptType := etStrict; ...