How to encrypt table name and column name in sql server?

Chirag Sachdeva 281 Reputation points
2021-02-10T13:56:45.243+00:00

Hi All,

I know column data can be encrypted in sql server. But can anyone please help how can i encrypt table name and column name in sql server.

Thanks
Chirag

SQL Server | Other
0 comments No comments
{count} votes

Accepted answer
  1. Olaf Helper 47,436 Reputation points
    2021-02-10T14:04:50.983+00:00

    how can i encrypt table name and column name in sql server.

    And what's that good for?

    You can create views on the base table and in the view you can define cryptic alias name for the column to "obfuscated" their content/intent.
    Grant the user only access on the views, but not on the base tables.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. CathyJi-MSFT 22,396 Reputation points Microsoft External Staff
    2021-02-11T06:37:14.443+00:00

    Hi @Chirag Sachdeva ,

    > But can anyone please help how can i encrypt table name and column name in sql server.

    Suggest you check if the suggestion from this similar thread How to encrypt Sql server table name and its column name & data inside for security pupose could help you.


    If the response is helpful, please click "Accept Answer" and upvote it, thank you.

    1 person found this answer helpful.
    0 comments No comments

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.