Hi,
Any chance that DecryptByKeyAutoAsymKey and/or DecryptByKeyAutoCert functions get added to Azure Synaspe SQL Dedicated Pool anytime soon?
It would unlock the ability to use Column-level encryption from Power BI in Direct Query mode.
With DecryptByKey function, one has to call OPEN SYMETRIC KEY prior to use DECRYPTBYKEY and it cannot be done from a View or from a Table-valued function.
It can be called in a stored procedure, but Power BI Direct Query mode doesn't support them.
Best solution would be to add DecryptByKeyAutoAsymKey and/or DecryptByKeyAutoCert to Azure Synapse. If a user doesn't have access to the key, it doesn't fail, it simply returns null which is what we want (tested in SQL Server 2019).
Thanks!
Frederick

or upvote
button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is