Always Encrypted – Lock request time out period exceeded

always-encryptedazure-sql-database

I'm trying to encrypt a column and am getting the following error: Set-SqlColumnEncryption : Lock request time out period exceeded. Are there parameters to specify the lock timeout? What could be locking it? The table has about 10k records. It works fine with empty tables or tables with hundreds of records.

Best Answer

Apparently, you can't have certain options turned on for the table, like "large value types out of row". Here's what I did:

exec sys.sp_tableoption @TableNamePattern = 'dbo.SomeTableName' ,@OptionName = 'large value types out of row' ,@OptionValue = 'off';