Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
how can I use specific user to execute xp_cmdshell ?

I am trying to use following code but its not working.

Use master
go
Execute As Login = 'DomainName\user'

Please help.
Posted

1 solution

To grants permissions on a table, view, table-valued function, stored procedure, extended stored procedure, scalar function, aggregate function, service queue, or synonym, use GRANT Object Permissions (Transact-SQL)[^]

To enable non-admin account to run xp_cmdshell command, please, follow the instructions: How to enable non-sysadmin accounts to execute the "xp_cmdshell" extended stored procedure in SQL Server 2000[^]
 
Share this answer
 
Comments
gvprabu 28-Nov-13 9:09am    
good job my friend... :-)
Maciej Los 28-Nov-13 9:11am    
Thank you, Gopal ;)
Nice to "see" you again ;)
gvprabu 28-Nov-13 9:12am    
thanks...yes my friend...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900