Database Permissions

60 pts.
Tags:
Database
Permissions
Is there anywhere that I can find out an explanation of what the database permissions are? An example would be what does grant view definition actually do? or What does grant view database give rights to or permissions to?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Books OnLine can provide you with the bulk of this information.

Most GRANT statements go what the name says.

For example GRANT VIEW DEFINITION allows the user to view the Definition (source code) of any view, procedure, function that you have granted the right to. So if you run:
<pre>GRANT VIEW DEFINITION ON schema::dbo TO Bob</pre>
Bob will be able to view the definition of all objects within the schema dbo.

If you run
<pre>GRANT VIEW DEFINITION ON vw_MyView TO Bob</pre>
Then bob can view the definition of the view vw_MyView.

Within SQL Server the definition would be the table structure (the columns, indexes, etc) if it’s a table. If it’s a view, procedure, function, rule, etc then it will show you the code which creates that object.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Denny Cherry
    Check out my SQL Server blog "SQL Server with Mr Denny" for more SQL Server information.
    66,360 pointsBadges:
    report
  • DBAMan100
    Books online does not give a definition of the permission or a breakdown of what it is for. Some of the permissions are self explanatory and other are not. What does Grant View Database State give you? Or View Server State. I assume that is telling me I can view the state of a database or server, but what does that mean? Does it give me rights to run Profiler? What are the underlying permissions??
    60 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following