Groups | Blog | Home
all groups > sql server new users > april 2005 >

sql server new users : Query Permisions


foobar
4/20/2005 11:55:22 AM
I want to write a statement to query object permisions in a database. How
do I do this. Thanks in advance for any help.

Andrew Watt [MVP - InfoPath]
4/20/2005 9:05:49 PM
At the risk of stating the obvious, you may need to precede the
statement Mike mentions by

USE databaseName

where you substitute the name of the database for "databaseName".

Andrew Watt
MVP - InfoPath

On Wed, 20 Apr 2005 21:22:55 +0200, "Mike Epprecht \(SQL MVP\)"
[quoted text, click to view]
Mike Epprecht (SQL MVP)
4/20/2005 9:22:55 PM
Hi

Look at sp_helprotect in Books Online.

e.g.
This example lists the permissions for the titles table.

EXEC sp_helprotect 'titles'
Regards
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland

IM: mike@epprecht.net

MVP Program: http://www.microsoft.com/mvp

Blog: http://www.msmvps.com/epprecht/

[quoted text, click to view]

AddThis Social Bookmark Button