Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 grant permission on xp_cmdshell

Author  Topic 

arkiboys
Master Smack Fu Yak Hacker

1433 Posts

Posted - 2011-12-15 : 11:18:26
Hi,
The following sql:
GRANT EXECUTE ON master..xp_cmdshell TO [domainName\groupname]

gives the error:
Cannot find the object 'xp_cmdshell', because it does not exist or you do not have permission.

Is my sql correct please?

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-12-15 : 11:36:07
whats error you're getting when you try to run xp_cmdshell? is it enabled in db first?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

arkiboys
Master Smack Fu Yak Hacker

1433 Posts

Posted - 2011-12-15 : 11:39:27
This was to do with permission to be able to execute this line.
It is solved now.
Thank you.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-12-15 : 11:43:03
k

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -