How to encrypt all existing views in SQL Server 2005?
I can encrypt them while creating it WITH ENCRYPTION clause but do not know how to do it after creating it.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can recreate all the views WITH ENCRYPTION,
BUT
notice – that it is very weak protection and actually works well only against “honest people”
SO
you cannot encrypt the views and SPs in sql server with appropriate level of security, try to manage the access to sql server instead – look to
VIEW DEFINITIONand similar permissions