Toad World® Forums

Export as a delimited file - can I specify a different row delimiter than the column delimiter?

I have a need to export tables from SQL Server to a delimited file using a column separator of ^ and row separator of @@@. So the flat file looks like this:


and so on.

I'd dearly love to automate this with Toad Data Point, but I don't see any way to specify the row delimiter. Can this be done?

It looks like TDP can handle your column separator, but I'm not seeing a way to define the row separator char string. This would be a good enhancement request, if you could please define it in TDP's Idea Pond:

That said, you may need to automate this in TDP with a two-step process:

  1. Have the Export Wizard task within the Automation Designer export your table data as "delimited text" and define your column separator as "^"

  2. Use the Run Program task to invoke a shell script (batch file with editing commands, Python, etc.) that replaces the EOL characters in your exported file with your row delimiting phrase "@@@".

Hope this gives you some ideas.

Thanks for the suggestion.

Let me know if it works out for you!...