sql server2000中怎么对存储过程进行加密和解密

发表于:2007-07-02来源:作者:点击数: 标签:


   
>>加密
From the Books Online:

Use the WITH ENCRYPTION option:

IF EXISTS (SELECT name FROM sysobjects
WHERE name = @#encrypt_this@# AND type = @#P@#)
DROP PROCEDURE encrypt_this
GO
USE pubs
GO
CREATE PROCEDURE encrypt_this
WITH ENCRYPTION
AS
SELECT *
FROM authors
GO

EXEC sp_helptext encrypt_this

原文转自:http://www.ltesting.net