March 25, 2014 at 2:07 pm
Okay, it's been a long day, I am going crazy.
I have a database that has some stored procedures that need to view sys.dm_exec_connections.
Stored procedures are execute AS OWNER. Owner is 'DOMAIN\ABC'.
use master;
go
grant view server state to [domain\ABC]
Success.
execute as user= 'domain\abc'
select * from sys.dm_exec_connections
Msg 297, Level 16, State 1, Line 3
The user does not have permission to perform this action.
Sure enough, the stored procs don't work either. I must be missing something trivial at this point. I've double checked that the permissions are granted.
:alien:
March 25, 2014 at 2:12 pm
Koopa (3/25/2014)
Okay, it's been a long day, I am going crazy.I have a database that has some stored procedures that need to view sys.dm_exec_connections.
Stored procedures are execute AS OWNER. Owner is 'DOMAIN\ABC'.
use master;
go
grant view server state to [domain\ABC]
Success.
execute as user= 'domain\abc'
select * from sys.dm_exec_connections
Msg 297, Level 16, State 1, Line 3
The user does not have permission to perform this action.
Sure enough, the stored procs don't work either. I must be missing something trivial at this point. I've double checked that the permissions are granted.
:alien:
I think that you need to execute as login and not as user. View server state is on the server and not on the database.
http://msdn.microsoft.com/en-us/library/ms181362(v=sql.100).aspx
Thanks
John.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply