selectstarfromyogi

sql server DBA ,sql server 2008 , 2012 , 2014 ,sql

Menu
Search
Skip to content
  • Home
  • About

State 1

Fix: Msg 15153, Level 16, State 1, Procedure xp_cmdshell, Line 1 The xp_cmdshell proxy account information cannot be retrieved or is invalid. Verify that the ‘##SQL Server xp_cmdshell_proxy_account##’ credential exists and contains valid information.

one of my client got the following error while executing bcp using xp_cmdshell. .

exec master..xp_cmdshell ‘bcp dbase.dbo.sales out “\\pharma\data\outputfile.txt” -c -T’

Error: Fix: Msg 15153, Level 16, State 1, Procedure xp_cmdshell, Line 1 The xp_cmdshell proxy account information cannot be retrieved or is invalid. Verify that the ‘##SQL Server xp_cmdshell_proxy_account##’ credential exists and contains valid information.

Fix :

  1. if the account is non-sysadmin account, after granting exec permissions on xp_cmdshell ( GRANT exec ON xp_cmdshell TO [loginname] ) we have to create  ##xp_cmdshell_proxy_account## credential, else xp_cmdshell will fail.
  2. ##xp_cmdshell_proxy_account##  proxy account credential can be created by executing sp_xp_cmdshell_proxy_account stored procedure.
EXEC sp_xp_cmdshell_proxy_account ‘domain\user’, ‘user_password’;
GO
October 5, 2015yogigollapudi ‘##SQL Server xp_cmdshell_proxy_account##’, Level 16, Line 1 The xp_cmdshell proxy account information cannot be retrieved or is invalid. Verify that the ‘##SQL Server xp_cmdshell_proxy_account##’ credential exists and contains valid information., Msg 15153, Procedure xp_cmdshell, State 1 Leave a comment

Categories

  • DEVOps (1)
  • Errors (9)
  • FUN (1)
  • Performance Tuning (11)
  • powershell (12)
  • T-SQL (43)
  • Uncategorized (154)

Blog Stats

  • 39,566 hits
Follow selectstarfromyogi on WordPress.com
Create a free website or blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • selectstarfromyogi
    • Already have a WordPress.com account? Log in now.
    • selectstarfromyogi
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
Design a site like this with WordPress.com
Get started