I have used the above code, and I am able to export the file as a pipe delimited file. However, I have spaces between the pipe if there is no value. How to I remove the spaces??? With the TSQL export, I see - Sql
With a MS Access - I see MS_Access