I'm using xp_cmdshell bcp to generate CSV file from the output, But I'm not able to generate the file, it gives me following output when executed.
I get this as the output, I'm not sure what is going on as I do not have much of hands on using xp_cmdshell I see there is something to do with -l login timeout, but not sure what is the time out
Below is the query I'm running
BCP "Select * FROM #temp" queryout "F:\Share\Test\test.csv" -c -t "|" -T -S<ServerName>
I'm expecting csv file with the result containing pipe separated values