Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

xp_cmdshell and xp_sqlagent_proxy_account issue

Posted on 2006-11-02
2
Medium Priority
?
995 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

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.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.

704 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