I have an xml format file for bulk loading in SQL Server 2008. I need to replace the instance of TERMINATOR="\r\n"
with TERMINATOR="\n"
. I'm trying to use the command line utility FART.exe
. No matter how I try, I cannot seem to get the utility to recognize the characters.
I have tried passing as combos of the find string and replace string:
\r\n \n
"\r\n" "\n"
""\r\n"" ""\n""
^\r^\n ^\n
TERMINATOR=""\r\n"" TERMINATOR=""\n""
TERMINATOR=""^\r^\n"" TERMINATOR=""^\n""
and many, many more combinations. Every article I look up about escaping DOS
commands tells me something different and I've tried them all with no luck. The truly strange thing is that not only does using \r\n \n
not do what I want it to do (replace the literals) but it does not replace the carriage return + line feed characters at the end of each line in the file.
The format file I need to edit. I believe the line I've underlined in red is causing a problem:
The command window output from calling Jrepl. It's obvious that the utility has a problem with the red-underlined line from the other screenshot: