I am trying to run a BCP command in windows machine powershell and unable to give input from a sql file.
Below command works fine in my MAC and I am looking for the same for Windows machine.
bcp "$(< /Users/mahendra.hegde/Desktop/input.sql)" queryout /Users/mahendra.hegde/dataout.json -c -T -S sample.env.compxyz.com
input.sql file scripts should be passed as input to bcp command when it runs.
I tried many ways in Windows but did not work, any help would be appreciated
Thanks