Hey guys,
I know there have been plenty of posts on this topic. I did my research and have my Query outputting to a text file as I wanted. However I have a question with adding something to my command.
Here is my command that is working:
EXEC XP_CmdShell 'BCP "Select code, desc From DATABASE.dbo.ta ble" queryout "C:\test.tx t" -c -T'
I want to add a "WHERE"...