The definition of access rights in MS SQL Server 2005

  • Thread starter Alexander Vasilevsky
  • Start date
A

Alexander Vasilevsky

How programmic (C#) to know whether there is a right of access to the server
object (table, stored procedure) for current user.

http://www.alvas.net - Audio tools for C# and VB.Net developers
 
J

Jesús López

Execute a query like the following:

select distinct permission_name from fn_my_permissions('your table or stored
procedure name', 'OBJECT')

where subentity_name = '' or subentity_name is null
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top