我爱Aspx >> C#.Net >> SqlServer存储过程/函数加/解密_数据库技巧
存储过程、存储函数的加密:WITH ENCRYPTION
<!--[if !supportLineBreakNewLine]-->
<!--[endif]-->
CREATE procedure dbo.sp_XML_main
@table_name nvarchar(260)='',
@dirname nvarchar(20)=''
WITH ENCRYPTION
as
begin
....................
end
go
存储过程、存储函数的解密
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sp_decrypt]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[sp_decrypt]
GO
/*--破解函数,过程,触发器,视图.仅限于SQLSERVER2000
--作者:J9988-- All rights reserved*/
/*--调用示例
--解密指定存储过程
exec sp_decrypt 'AppSP_test'
--对所有的存储过程解密
declare tb cursor for
select name from sysobjects where xtype='P' and status>0 and name<>'sp_decrypt'
declare @name sysname
open tb
fetch next from tb into @name
while @@fetch_status=0
begin
print '/*-------存储过程 ['+@name+'] -----------*/'
exec sp_decrypt @name
fetch next from tb into @name
end
close tb
deallocate tb
--*/
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[SP_DECRYPT]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[SP_DECRYPT]
GO
CREATE PROCEDURE sp_decrypt(@objectName varchar(50))
AS
begin
set nocount on
--破解字节不受限制,适用于SQLSERVER2000存储过程,函数,视图,触发器
--修正上一版视图触发器不能正确解密错误
Ҷƪл˵?
用存储过程几个最直接的好处_数据..[04-28]
asp.net(C#)海量数据表高效率分页..[04-28]
调用存储过程并且使用返回值的基..[04-28]
一个容易忽视的存储过程问题_数据..[04-28]
小记存储过程中经常用到的本周,..[04-28]
[SQLServer][DTS][存储过程]将DT..[04-28]
在Access中模拟sql server存储过..[04-28]
SQL 存储过程&算法_数据库技..[04-28]
建立一个传表名参数的存储过程_数..[04-28]
一个比较好的分页存储过程_数据库..[04-28]
用存储过程几个最直接的好处_数据..[04-28]
IBatisNet系列-执行存储过程_ASP..[04-28]
asp.net(C#)海量数据表高效率分页..[04-28]
调用存储过程并且使用返回值的基..[04-28]
一个容易忽视的存储过程问题_数据..[04-28]
一个简单的用存储过程分页_ASP技..[04-28]
无限级分类的非递归实现(存储过程..[04-28]
小记存储过程中经常用到的本周,..[04-28]
[SQLServer][DTS][存储过程]将DT..[04-28]
存储过程中调用C#写的DLL_C#应用[04-28]