Is there a quick way to find all columns in SQL Server 2008 R2 that are encrypted/have encrypted data?

Is there a quick way to find all columns in SQL Server 2008 R2 that are encrypted/have encrypted data?

 

SELECT t.name AS [Table],
       c.name AS [Column],
       c.encryption_type_desc
FROM sys.all_columns c
    INNER JOIN sys.tables t
        ON c.object_id = t.object_id
WHERE c.encryption_type IS NOT NULL
ORDER BY t.name,
         c.name;

 

作者:Chuck Lu    GitHub    
posted @   ChuckLu  阅读(18)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2021-09-07 Update to enable TLS 1.1 and TLS 1.2 as default secure protocols in WinHTTP in Windows
2021-09-07 How to check if TLS 1.2 is enabled?
2021-09-07 How to Activate TLS 1.2 on Windows Server 2008 R2 and IIS 7.5
2021-09-07 生成证书
2021-09-07 How to Import and Export SSL Certificates in IIS 7
2021-09-07 How to find certificates by thumbprint or name with powershell
2021-09-07 Any reason NOT to set all cookies to use httponly and secure
点击右上角即可分享
微信分享提示