sql的 创建视图里的encryption是什么意思
来源:百度知道 编辑:UC知道 时间:2024/06/07 10:33:54
就是给视图加密
如果不加with encryption创建视图,可以用
exec sp_helptext 视图名字
这个系统过程来查看创建视图的代码
加了with encryption就不能看了
是加密视图的意思。
比如:
create view test123 with encryption as
select * from test
加密就是保护咯!也就是说代码是安全的!
比如:create view test_vw as select * from test
运行视图:
exec sp_helptext test_vw
得出的结果是:create view test_vw as select * from test
如果是alter view test_vw with encryption as select * from test
然后运行相同的命令:exec sp_helptext test_vw
显示:对象 'test_vw' 的文本已加密。
加密视图!
比如:
create view test123 with encryption as
select * from test
加密就是保护咯!
也就是说你的代码是安全的!
比如:
create view test_vw as select * from test
运行视图:
exec sp_helptext test_vw
得出的结果是:create view test_vw as select * from test
如果是
alter view test_vw with encryption as select * from test
然后你运行相同的命令:
exec sp_helptext