July 26, 2009 at 6:59 am
Hi,
I have a requirement, i want to diable "Sp_helptext" because i don't want user of the database to read the scripts that is written in the Database.
Any suggestions will be highly helpful.
Thanks
Jim
July 26, 2009 at 7:17 am
I know if you had done it the opposite way, where you granted the user or role minimum rights like db_datareader and db_datawriter, then you had to do GRANT VIEW ANY DEFINITION in order to give them the ability to see the definitions, which i think includes the successful use of sp_helptext.
try DENY VIEW ANY DEFINITION and see if that takes away that right.
Lowell
July 26, 2009 at 2:06 pm
Or create the procedures and functions using
WITH ENCRYPTION
will make it harder for people to read your code.
N 56°04'39.16"
E 12°55'05.25"
July 26, 2009 at 3:03 pm
Peso (7/26/2009)
Or create the procedures and functions usingWITH ENCRYPTION
will make it harder for people to read your code.
Heh... just make sure that you have clear copy of the code stashed away or you'll need to lookup how to break that encryption (which is why Peso said "make it harder" instead of "make it impossible").
--Jeff Moden
Change is inevitable... Change for the better is not.
August 1, 2009 at 6:01 am
I tried to use deny view. Still it is not working.
How i did is
- Logged in as Admin
- Went to the Database, Security folder-->Users--Selected the User-->Property-->Securable-->Add Securable-->I mentioned the object (Store Procedure) and denied the view.
Plz correct me if i'm wrong.
March 22, 2010 at 4:10 am
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply