破解函数,过程,触发器,视图.

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 '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

你可能感兴趣的:(破解函数,过程,触发器,视图.)