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
You're looking for WITH ENCRYPTION
, which encrypts the code behind your stored proc.
CREATE PROCEDURE usp_MyProc
WITH ENCRYPTION
AS
SELECT *
FROM myTable
Just a caveat, from MSDN:
Users who have no access to system tables or database files cannot retrieve the obfuscated text. However, the text will be available to privileged users who can either access system tables over the DAC port or directly access database files.
Some references and further reading: