Solved

datareader can see code

Posted on 2011-09-15
6
357 Views
Last Modified: 2012-05-12
the new user has only datareader but is able to read the procs, udf  etc

datareader means they can read any code on the db? (along with selects on any tables/views)
0
Comment
Question by:25112
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 18

Accepted Solution

by:
x-men earned 250 total points
ID: 36544240
you can give permissions to especific tables and views
0
 
LVL 18

Expert Comment

by:x-men
ID: 36544243
...and remove
0
 
LVL 18

Expert Comment

by:x-men
ID: 36544244
...or deny
0
Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

 
LVL 50

Assisted Solution

by:Lowfatspread
Lowfatspread earned 250 total points
ID: 36544282
i didn't think datareader included definition ... by default but i'd have to check...

deny defintion if you don't want them to be able to see code etc

or you certain they aren't inheriting some other roles etc..? (e.g. admin)
0
 
LVL 5

Author Comment

by:25112
ID: 36544571
deny worked good.
0
 
LVL 50

Expert Comment

by:Lowfatspread
ID: 36545329
unlrss the code is encrypted , they can probablu still see the definition of the stored procedures by looking at the dara in either the information_achema tables or the sysrem tables ... if you have still left them with datareader.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question