Backup
Exec master..xp_cmdshell 'bcp "pub..sysObjects" OUT "c: /a.txt" / s "localhost" / u "sa" / p "mdcija" / c
reduction
Exec master..xp_cmdshell 'bcp "pubs..sysObjects" in "c: /a.txt" / s server name "/ u" user name "/ P" password "/ c'