|
Hoping someone may see what I am missing.
I have an extract from a MSSQL server that includes this line
isnull( replace( replace( convert( nvarchar(max)
, TR.Description )
, char(13) + char(10),' ' )
, ',', ';' )
, '' )
as [Info]
Which is to remove CR and LF as well as any commas.
The output is to a csv format file that is then loaded into a
database file on the IBM i via FTP and subsequently processed.
Today the file load failed and investigation identified multiple
records caused by the CR LF characters.
Looking at the file in notepad++ I can see the CR LF but the above
replace should have removed them ???
If you copy the following lines and paste into notepad++ you may see
the CR LF codes if they are not stripped out by the site software.
<Start>
special care.
AAN Account..
<End>
Any suggestions welcomed.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.