• The stored procedure got executed under your permissions but xp_cmdshell is run by {mydomain}\SqlAdmin account on Server A (When xp_cmdshell is invoked by a user who is a member of the sysadmin fixed server role, xp_cmdshell will be executed under the security context in which the SQL Server service is running). Check the windows event log as well and should show error messages.