problem with xp_cmdshell

  • Hi ,

    I have created a SQl authenticated login ,and given db_owner rights to that login ,however not able to execute the SP which is having xp_cmdshell,

    following are the message i am getting

    The EXECUTE permission was denied on the object 'xp_cmdshell', database 'mssqlsystemresource', schema 'sys'.

    please help me

  • the user needs execute permissions on the extended stored proceedure which is in the master database.

  • sorry,didnt get you .

    my login name is tech12

    how do we give access

  • USE [Master]

    GO

    CREATE USER [tech12] FOR LOGIN [Tech12]

    GO

    grant execute on xp_cmdshell to tech12

    go

  • thank you,it worked

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply