| 订阅 | 在线投稿
分享
 
 
 

SQL视图加密,加密后不可逆

2008-12-13 08:23:43 编辑來源:互联网 国际版 评论
 
 
本文为【SQL视图加密,加密后不可逆】的汉字拼音对照版显示拼音
  zuijinzaiyanjiugongwenliuzhuandingyidexiangguanziliaocongwangshangxiazaileyigedaiyuanmadexitongmaitoufenjieyanjiuhoulaishunzhedaimazhaodaoleSQLshitubufenjuranfaxianshijiamideyiqianyizhimeizhuyizhegewentixiangbatajiechulaiweilebijiaohaodeshuomingwentixianlaijiamixiaSQLshituview plaincopy to clipboardprint?

  --ruxiadeshituchuangjianyujuzhegechuangjiandeshitushibujiajiamide

  CREATE VIEW dbo.V_MapManagePower

  AS

  SELECT dbo.ManageUser.ManageUserID, dbo.ManageUser.ManageUserName,

  dbo.ManageUser.ManageUserLock, dbo.ManageGroup.ManageGroupID,

  dbo.ManageGroup.ManageGroupName

  FROM dbo.ManageGroup INNER JOIN

  dbo.ManagePowerConfig ON

  dbo.ManageGroup.ManageGroupID = dbo.ManagePowerConfig.ManageGroupID INNER

  JOIN

  dbo.ManageUser ON

  dbo.ManagePowerConfig.ManageUserID = dbo.ManageUser.ManageUserID

  --ruxiadeshituchuangjianyujuzhegechuangjiandeshitushibujiajiamide

  CREATE VIEW dbo.V_MapManagePower

  AS

  SELECT dbo.ManageUser.ManageUserID, dbo.ManageUser.ManageUserName,

  dbo.ManageUser.ManageUserLock, dbo.ManageGroup.ManageGroupID,

  dbo.ManageGroup.ManageGroupName

  FROM dbo.ManageGroup INNER JOIN

  dbo.ManagePowerConfig ON

  dbo.ManageGroup.ManageGroupID = dbo.ManagePowerConfig.ManageGroupID INNER

  JOIN

  dbo.ManageUser ON

  dbo.ManagePowerConfig.ManageUserID = dbo.ManageUser.ManageUserIDview plaincopy to clipboardprint?

  --zhegechuangjiandeshituyujujiubishangmiandeduolewith encryptionjieguozaiqukanshitushejideshihoujiujiamile

  CREATE VIEW dbo.V_MapManagePower with encryption

  AS

  SELECT dbo.ManageUser.ManageUserID, dbo.ManageUser.ManageUserName,

  dbo.ManageUser.ManageUserLock, dbo.ManageGroup.ManageGroupID,

  dbo.ManageGroup.ManageGroupName

  FROM dbo.ManageGroup INNER JOIN

  dbo.ManagePowerConfig ON

  dbo.ManageGroup.ManageGroupID = dbo.ManagePowerConfig.ManageGroupID INNER

  JOIN

  dbo.ManageUser ON

  dbo.ManagePowerConfig.ManageUserID = dbo.ManageUser.ManageUserID

  --zhegechuangjiandeshituyujujiubishangmiandeduolewith encryptionjieguozaiqukanshitushejideshihoujiujiamile

  CREATE VIEW dbo.V_MapManagePower with encryption

  AS

  SELECT dbo.ManageUser.ManageUserID, dbo.ManageUser.ManageUserName,

  dbo.ManageUser.ManageUserLock, dbo.ManageGroup.ManageGroupID,

  dbo.ManageGroup.ManageGroupName

  FROM dbo.ManageGroup INNER JOIN

  dbo.ManagePowerConfig ON

  dbo.ManageGroup.ManageGroupID = dbo.ManagePowerConfig.ManageGroupID INNER

  JOIN

  dbo.ManageUser ON

  dbo.ManagePowerConfig.ManageUserID = dbo.ManageUser.ManageUserIDzailaikankancongSQLqiyeguanliqizhongcaozuodefangshizhexiazhidaolebabukenide~~~~~原文
 
 
最近在研究公文流转定义的相关资料,从网上下载了一个带源码的系统,埋头分解研究,后来顺着代码找到了SQL视图部分,居然发现是加密的,以前一直没注意这个问题,想把它解出来。为了比较好的说明问题先来加密下SQL视图。view plaincopy to clipboardprint? --如下的视图创建语句,这个创建的视图是不加加密的 CREATE VIEW dbo.V_MapManagePower AS SELECT dbo.ManageUser.ManageUserID, dbo.ManageUser.ManageUserName, dbo.ManageUser.ManageUserLock, dbo.ManageGroup.ManageGroupID, dbo.ManageGroup.ManageGroupName FROM dbo.ManageGroup INNER JOIN dbo.ManagePowerConfig ON dbo.ManageGroup.ManageGroupID = dbo.ManagePowerConfig.ManageGroupID INNER JOIN dbo.ManageUser ON dbo.ManagePowerConfig.ManageUserID = dbo.ManageUser.ManageUserID --如下的视图创建语句,这个创建的视图是不加加密的 CREATE VIEW dbo.V_MapManagePower AS SELECT dbo.ManageUser.ManageUserID, dbo.ManageUser.ManageUserName, dbo.ManageUser.ManageUserLock, dbo.ManageGroup.ManageGroupID, dbo.ManageGroup.ManageGroupName FROM dbo.ManageGroup INNER JOIN dbo.ManagePowerConfig ON dbo.ManageGroup.ManageGroupID = dbo.ManagePowerConfig.ManageGroupID INNER JOIN dbo.ManageUser ON dbo.ManagePowerConfig.ManageUserID = dbo.ManageUser.ManageUserIDview plaincopy to clipboardprint? --这个创建的视图语句就比上面的多了with encryption,结果再去看视图设计的时候就加密了 CREATE VIEW dbo.V_MapManagePower with encryption AS SELECT dbo.ManageUser.ManageUserID, dbo.ManageUser.ManageUserName, dbo.ManageUser.ManageUserLock, dbo.ManageGroup.ManageGroupID, dbo.ManageGroup.ManageGroupName FROM dbo.ManageGroup INNER JOIN dbo.ManagePowerConfig ON dbo.ManageGroup.ManageGroupID = dbo.ManagePowerConfig.ManageGroupID INNER JOIN dbo.ManageUser ON dbo.ManagePowerConfig.ManageUserID = dbo.ManageUser.ManageUserID --这个创建的视图语句就比上面的多了with encryption,结果再去看视图设计的时候就加密了 CREATE VIEW dbo.V_MapManagePower with encryption AS SELECT dbo.ManageUser.ManageUserID, dbo.ManageUser.ManageUserName, dbo.ManageUser.ManageUserLock, dbo.ManageGroup.ManageGroupID, dbo.ManageGroup.ManageGroupName FROM dbo.ManageGroup INNER JOIN dbo.ManagePowerConfig ON dbo.ManageGroup.ManageGroupID = dbo.ManagePowerConfig.ManageGroupID INNER JOIN dbo.ManageUser ON dbo.ManagePowerConfig.ManageUserID = dbo.ManageUser.ManageUserID  再来看看从SQL企业管理器中操作的方式,这下知道了吧,不可逆的~~~~~
󰈣󰈤
 
 
>>返回首页<<
 为你推荐
 
 
 
 转载本文
 UBB代码 HTML代码
复制到剪贴板...
 
 
 热帖排行
 
 
王朝网络微信公众号
微信扫码关注本站公众号wangchaonetcn
 
  免责声明:本文仅代表作者个人观点,与王朝网络无关。王朝网络登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
©2005- 王朝网络 版权所有