SQL Server 2016 - Is it possible to concatenate two nvarchar always encrypted columns?

前端 未结 1 1776
梦如初夏
梦如初夏 2021-01-20 17:32

I have created a table using:

create table dbo.employee(firstname nvarchar(100) null,lastname nvarchar(100) null)

Inserted some sample d

1条回答
  •  离开以前
    2021-01-20 18:18

    Concatenation in not allowed on encrypted columns. Currently the only operation possible on encrypted columns is equality. This is due to the fact that SQL Server does not have the key.

    You might have to implement this logic in the client application.

    From official documentation

    Deterministic encryption always generates the same encrypted value for any given plain text value. Using deterministic encryption allows point lookups, equality joins, grouping and indexing on encrypted columns. However, but may also allow unauthorized users to guess information about encrypted values by examining patterns in the encrypted column, especially if there is a small set of possible encrypted values, such as True/False, or North/South/East/West region. Deterministic encryption must use a column collation with a binary2 sort order for character columns.

    Randomized encryption uses a method that encrypts data in a less predictable manner. Randomized encryption is more secure, but prevents searching, grouping, indexing, and joining on encrypted columns.

    0 讨论(0)
提交回复
热议问题