Solved

xp_cmdshell and xp_sqlagent_proxy_account issue

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Truncate vs Delete 63 88
ssms - object execution statistics 12 37
ms sql stored procedure 22 77
add 1 to a field for 100 rows 11 12
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.
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how the fundamental information of how to create a table.

758 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

21 Experts available now in Live!

Get 1:1 Help Now