microsoft / SQLServerPSModule

This repo is the home of SQL Server PowerShell Module development.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Column encryption using always encrypted fails for tables with clustered index when using online approach

DBarmanMS opened this issue · comments

Repro steps:

  1. Create a table with a clustered index
  2. Try to encrypt a column in this table using UseOnlineApproach
  3. The encryption fails with the error similar to "Set-SqlColumnEncryption: Cannot create more than one clustered index on table 'HR.tmp_ms_xx_xxxxxxxxxxxxx'. Drop the existing clustered index 'tmp_ms_xx_index_CIX_EmpDetails_EmpId1' before creating another."

PR - https://msdata.visualstudio.com/SQLToolsAndLibraries/_git/AlwaysEncrypted/pullrequest/1054777

This was fixed in v22.1.1