Solved

xp_cmdshell and xp_sqlagent_proxy_account issue

Posted on 2006-11-02
2
972 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 500 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

896 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now