Secure enclaves enabled but SSMS didn't allow

John Woo 20 Reputation points
2025-02-27T12:28:14.4366667+00:00

in Azure portal, I created the database with Secure enclaves enabled - type was Virtualization based security (VBS).
the command below return 1,1; however when using SSMS trying to connect with Enable secure enclaves, and protocol None, got error:
You have specified the attestation protocol in the connection string, but the SQL Server in use does not support enclave based computations - see https://go.microsoft.com/fwlink/?linkid=2157649 for more details. (Microsoft.Data.SqlClient)


Program Location:

at Microsoft.Data.SqlClient.TdsParser.TryProcessFeatureExtAck(TdsParserStateObject stateObj)

at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
....

select name, value, value_in_use from sys.configurations where name = 'column encryption enclave type'
Azure SQL Database
{count} votes

Accepted answer
  1. Erland Sommarskog 118.5K Reputation points MVP
    2025-02-28T21:55:32.64+00:00

    I did some testing. I created a database enabled for enclaves on one of my Azure servers. I find that I can connect to this database with these settings in SSMS:

    User's image

    But if I connect to a database on this server which is not enabled for Always Encrypted, I get the same error message as you.

    I'm inclined to think that you may be connecting to the wrong database. Either because you are connecting to database yourdb on server2.windows.database.net rather than database yourdb on server1.windows.database.net. Or you don't have the proper database in the Connection properties tab. So I would double-check all parameters.

    Another way to check this, is to connect to the database with AE enabled and run queries against tables you know have encrypted columns. Also run this query:

    SELECT * FROM sys.column_master_keys
    

    And check the column allow_enclave_computations

    If all checks fall out positive, we will have to conclude that something is out of order. I would recommend that you open a support case if so. If you only have a developer plan, this will send you back here, but since you work for a big bank, I assume that you have access to a better support plan.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.