xp_cmdshell is an extended stored procedure that executes operating system commands from SQL Server, so it can invoke any command-line utility including bcp (Bulk Copy Program). For security, xp_cmdshell is disabled by default and must be explicitly enabled with sp_configure, setting the value to 1 (not 0, which disables it).