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


>>加密
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

Published At
Categories with 数据库类
comments powered by Disqus