I have a sql 2005 database with access controlled by a couple of AD groups. There is a group to provide read only access and one with full access.
Is there an easy way of asking SQL server what level of access a user currently has, i would like my app to pop up with a message telling the user if they only have read only access.
Cheers Luke
这类似于您要求的内容,但对于Create Table权限,应该易于遵循并应用所需的更改: 如何检测我是否具有CREATE TABLE权限?
如果使用sp_helpuser
,它将返回具有当前角色的用户表。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.