Question : Extraneous "Shift Enter" items in my data....

Not sure what to call it, but one of the columns in my table has "Shift Enter" characters at the end of the data....any way to search for that key combination and replace it with something that won't cause line breaks when I export to Pipe Delimited fomat?

Thanks,
Kevin3NF

Answer : Extraneous "Shift Enter" items in my data....

Is it a linefeed (10) or cartrige return (13)?

You can do a search first

select * from your_tab where charindex(col1, char(10)) > 0 || charindex(col1, char(13)) > 0

You can use the following to replace the special chars:


update your_tab set col1 = replace(col1, char(13), '')

Random Solutions  
 
programming4us programming4us