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
Solved

xp_cmdshell and xp_sqlagent_proxy_account issue

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
tools to scan a SQL server's problem 14 27
sql server query 18 39
reccommendations for a free msft sql query manager? 4 28
Getting invalid Syntax SQL. 3 20
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

837 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