There are some situations where business logics wants to hide the logic implementation, in those scenarios schema of the stored procedure can be encrypted.
Use AdventureWorks2008
go
CREATE PROCEDURE uspEncryptedPersonAddress
WITH ENCRYPTION
AS
BEGIN
SET NOCOUNT ON
SELECT * FROM Person.Address
END
If some one try to view using sp_helptext this is what they see
The text for object 'uspEncryptedPersonAddress' is encrypted.
No comments:
Post a Comment