Click to Rate and Give Feedback
MSDN
MSDN Library
SQL Server
SQL Server 2005
 sp_xp_cmdshell_proxy_account (Trans...
Community Content
In this section
Statistics Annotations (0)
Collapse All/Expand All Collapse All
SQL Server 2005 Books Online (November 2008)
sp_xp_cmdshell_proxy_account (Transact-SQL)

Creates a proxy credential for xp_cmdshell.

Topic link icon Transact-SQL Syntax Conventions

sp_xp_cmdshell_proxy_account [ NULL | { 'account_name' , 'password' } ]
NULL

Specifies that the proxy credential should be deleted.

account_name

Specifies a Windows login that will be the proxy.

password

Specifies the password of the Windows account.

0 (success) or 1 (failure)

The proxy credential will be called ##xp_cmdshell_proxy_account##.

When it is executed using the NULL option, sp_xp_cmdshell_proxy_account deletes the proxy credential.

Requires CONTROL SERVER permission.

A. Creating the proxy credential

The following example shows how to create a proxy credential for a Windows account called ADVWKS\Max04 with password ds35efg##65.

EXEC sp_xp_cmdshell_proxy_account 'ADVWKS\Max04', 'ds35efg##65";
GO

B. Dropping the proxy credential

The following example removes the proxy credential from the credential store.

EXEC sp_xp_cmdshell_proxy_account NULL;
GO
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker