SqlCommandColumnEncryptionSetting 列舉

定義

指定讀取及寫入加密的資料行時,資料的傳送及接收方式。 根據您的特定查詢,當使用非加密的資料行時,略過 Always Encrypted 驅動程式的處理可能會降低對效能的影響。 請注意,這些設定不能用來略過加密並存取純文字資料。 如需詳細資訊,請參閱 Always Encrypted (資料庫引擎)

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

欄位

Disabled 3

停用查詢的 Always Encrypted。

Enabled 1

啟用查詢的 Always Encrypted。

ResultSetOnly 2

指定驅動程式中的 Always Encrypted 常式只應處理命令的結果。 當命令沒有需要加密的參數時,請使用這個值。

UseConnectionSetting 0

指定命令應該預設為連接字串中的 Always Encrypted 設定。

備註

  • 如果 Always Encrypted 已針對查詢停用,且該查詢具有需要加密的參數 (對應至已加密資料行的參數),則該查詢將會失敗。

  • 如果 Always Encrypted 已針對查詢停用,且該查詢傳回來自已加密資料行的結果,則該查詢將會傳回已加密的值。 已加密的值將具有 varbinary 資料類型。

適用於

另請參閱