Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
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: Today @ 4:29 PM
Points: 14,189, Visits: 37,095
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

--
help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!
Post #759765
Posted Sunday, July 26, 2009 2:06 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, April 14, 2015 6:45 AM
Points: 2,403, Visits: 3,431
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-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 7:05 PM
Points: 40,383, Visits: 37,591
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."

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: Thursday, April 7, 2016 1:54 AM
Points: 374, Visits: 1,445
See http://www.mssqltips.com/tip.asp?tip=1593
Post #887253
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse