I want to hide the script of a stored procedure in SQL Server 2008

后端 未结 4 1492
温柔的废话
温柔的废话 2021-02-15 14:27

I have written a stored procedure in SQL Server.

Now its just that I don\'t want any one to see my script or edit it.

Please remember that I am working on the a

4条回答
  •  再見小時候
    2021-02-15 14:57

    Use the encryption keyword for your stored procedure. This will hide the code:

    CREATE PROCEDURE dbo.foo 
    WITH ENCRYPTION 
    AS 
    BEGIN 
        SELECT 'foo' 
    END
    

提交回复
热议问题