Search
Home
Articles
Backup
Books
Certification
FAQ
Products
Replication
Scripts
Seminars
Training
TSQL

MSDN Fourms
Fort Worth SSUG
Oklahoma City SSDG

Resume

Champion Valley Pens

SQL Server 7.0 Extended Stored Procedure Reference 1 2 3 4 5 6 7 8 9 10 11 12

xp_cmdshell

Opens an NT command shell where you can execute any NT command. This is a very powerful procedure that can pose a serious security risk. The command shell runs with the permissions of the account SQL Server is logged in as and not with the credentials of the user. Make sure you carefully evaluate the people that have execute permission for this procedure.

Parameter Description Optional
command Any DOS or NT command that could normally be executed from a DOS prompt. This includes executing batch files and other programs. No

SQL Server 7.0 Extended Stored Procedure Reference 1 2 3 4 5 6 7 8 9 10 11 12

Michael R. Hotek

All content on this site, except where noted, represents an original work of Michael R. Hotek and is protected by applicable copyright laws. The SQL Server FAQ is the sole work of Neil Pike. No page, portion of a page, or download may be used for commercial purposes in whole or in part without the express, written permission of the applicable author.