sql - Issues while using xp_cmdshell to run from stored procedure -


i running sql server agent job, using proxy account a , agent job executes stored procedure, uses xp_cmdshell run exe.

sql server agent , sql server running under account b.

i have created proxy credentials account a , has access full access director contains executable.

when try execute job , log account running under (using xp_cmdshell 'whoami') logs account b.

is there someway can run under account a?

can please help?

thanks, ben

check out this question. has account xp_cmdshell command running under. (please note xp_cmdshell can exploited a security vulnerability , should careful when allowing on server.)


Comments

Popular posts from this blog

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -