Sql Server存储过程函数加解密

WBOY
풀어 주다: 2016-06-07 17:53:37
원래의
1157명이 탐색했습니다.

SqlServer存储过程/函数加/解密 存储过程、存储函数的加密:WITH ENCRYPTION !--[if !supportLineBreakNewLine]-- !--[endif]-- CREATE procedure dbo.sp_XML_main @table_name nvarchar(260)='', @dirname nvarchar(20)='' WITH ENCRYPTION as begin ......

SqlServer存储过程/函数加/解密

存储过程、存储函数的加密:WITH ENCRYPTION

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存储过程,函数,视图,触发器

관련 라벨:
원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!