SqlNetEncryptionClient

This property specifies the encryption client behavior.

Declaration

// C#
public string SqlNetEncryptionClient {get; set;}

Return Value

System.String

Remarks

Default value is null. Null setting means other configuration methods determine the client's encryption behavior.

Possible string values:

  • accepted - enable the security service if required or requested by the database.

  • rejected - disable the security service, even if required by the database.

  • requested - enable the security service if the database allows it.

  • required - enable the security service and disallow the connection if the database is not enabled for the security service.

All other string values are incorrect and should not be used.

Example

conn.SqlNetEncryptionClient = "REQUESTED";