Q2.8: Making a Stored Procedure invisible
System 11.5 and above
It is now possible to encrypt your stored procedure code
that is stored in the syscomments table. This is preferred
than the old method of deleting the data as deleting will
impact future upgrades. You can encrypt the text with the
sp_hidetext system procedure.
Pre-System 11.5
Perhaps you are trying to not allow the buyer of your software
defncopy all your stored procedures. It is perfectly safe to
delete the syscomments entries of any stored procedures you'd like to
protect:
sp_configure "allow updates", 1
go
reconfigure with override /* System 10 and below */
go
use affected_database
go
delete syscomments where id = object_id("procedure_name")
go
use master
go
sp_configure "allow updates", 0
go
I believe in future releases of Sybase we'll be able to see
the SQL that is being executed. I don't know if that would be simply
the stored procedure name or the SQL itself.