Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Hi friends,

How to hide the stored procedures in sql Server 2005.
Posted

1 solution

You can encrypt the text of the stored procedure, if that is what you mean.
SQL
CREATE PROCEDURE my_procedure
    WITH ENCRYPTION
    AS
    BEGIN
      SELECT *
      FROM my_table
    END

The encryption is not unbreakable, but at least it is a first line of defence.
From here[^]

Options for hiding SQL Server code[^]
 
Share this answer
 
v2
Comments
Rockstar_ 7-Sep-12 3:10am    
thanks you very much for your response my friend,
i am going to hide the database, for this i followed the steps which are in the links you provided. But the databases are still visible by the user SA.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900