SqlCommandColumnEncryptionSetting 枚举

定义

指定在读取和写入加密列时如何发送和接收数据。 根据特定的查询,在使用非加密列时绕过 Always Encrypted 驱动程序的处理,可能会降低性能影响。 请注意,这些设置不能用于绕过加密并获取对纯文本数据的访问权限。 有关详细信息,请参阅 Always Encrypted (数据库引擎)

public enum class SqlCommandColumnEncryptionSetting
public enum SqlCommandColumnEncryptionSetting
type SqlCommandColumnEncryptionSetting = 
Public Enum SqlCommandColumnEncryptionSetting
继承
SqlCommandColumnEncryptionSetting

字段

名称 说明
UseConnectionSetting 0

指定该命令应默认为连接字符串中的 Always Encrypted 设置。

Enabled 1

为查询启用 Always Encrypted。

ResultSetOnly 2

指定驱动程序中 Always Encrypted 例程应只能处理命令的结果。 当命令不具有需要加密的任何参数时使用此值。

Disabled 3

对查询禁用 Always Encrypted。

注解

  • 如果查询已禁用 Always Encrypted,且查询有需要加密的参数(对应于加密列的参数),那么查询会失败。

  • 如果查询已禁用 Always Encrypted,且查询从加密列返回结果,那么查询会返回加密值。 加密值具有 varbinary 数据类型。

适用于

另请参阅