I need to pull data from my databse and have it output to a text file in a specific format. I have the follow to pull data correctly buts its a CSV file with headers I dont want headers and i need each field to be put in the flat file right after the last field no spaces no commmas'
sqlcmd -U encore -P PWDHERE -d Encrbase -s, -w 30000 -Q "SELECT ITM_ID,DEPT_NBR, CURT_PRC, ORIG_PRC" FROM ITM -o C:\ITM-PULL.TXT
i.e. first 2 lines would output
25404, 0025, 00012, 00018
25405, 0010, 00010, 00020
i want it to be like this flat file each field immediately after the previous no spaces no commas....
25404002500012000182540500100001000020
Thanks in advance