Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

How to Disable SP_Helptext Expand / Collapse
Author
Message
Posted Sunday, July 26, 2009 6:59 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Saturday, August 1, 2009 5:55 AM
Points: 3, Visits: 2
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
Post #759764
Posted Sunday, July 26, 2009 7:17 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 2:35 PM
Points: 12,962, Visits: 32,498
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

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #759765
Posted Sunday, July 26, 2009 2:06 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, October 28, 2014 11:02 AM
Points: 2,397, Visits: 3,419
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"
Post #759811
Posted Sunday, July 26, 2009 3:03 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Yesterday @ 7:27 AM
Points: 35,769, Visits: 32,437
Peso (7/26/2009)
Or create the procedures and functions using

WITH 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
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #759824
Posted Saturday, August 1, 2009 6:01 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Saturday, August 1, 2009 5:55 AM
Points: 3, Visits: 2
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.
Post #763577
Posted Monday, March 22, 2010 4:10 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Tuesday, December 9, 2014 12:45 PM
Points: 365, Visits: 1,341
See http://www.mssqltips.com/tip.asp?tip=1593
Post #887253
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse