Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

xp_cmdshell and xp_sqlagent_proxy_account issue

Posted on 2006-11-02
2
Medium Priority
?
1,000 Views
Last Modified: 2012-05-05
I am not currently a sysadmin, but had the SA grant me access to execute both xp_cmdshell and xp_sqlagent_proxy_account.

I successfully executed xp_sqlagent_proxy_account using N'SET'  and even did an N'GET' and ensured that the account was in fact set properly.

However, even after executing this, I still get the following when executing xp_cmdshell:

Msg 50001, Level 1, State 50001
xp_cmdshell failed to execute because current security context is not sysadmin and proxy acount is not setup correctly. For more information, refer to Book Online, search for topic related to xp_sqlagent_proxy_account.


Does anyone have any idea why this would still be happening?!

0
Comment
Question by:NipsMG
2 Comments
 
LVL 6

Accepted Solution

by:
davbouchard earned 2000 total points
ID: 17860158
You can do those commands even when the proxy_account isn't setup.

You may want to get your admin to verify the SQL Server Agent Properties as the Non-SysAdmin job step proxy account may still be checked on.
0
 

Author Comment

by:NipsMG
ID: 17861583
THANK YOU!.

It was that setting that was checked in the SQL Agent properties on the production server.  Amazing how I hadn't seen that suggestion elsewhere before, even after 3 hours of searching.  


Thanks again.
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question