I'm trying to take text from a varchar column and convert it to numeric. However, there are instances where it throws an error and says it's unable to convert varchar to numeric. I know which record it's not working on and when I open the table to look at it, it looks the same as a record that it did work on. I copied the field from SQL Query Analyzer, copied into TextPad and turned on the function in TextPad that shows carriage returns. When I do that I get something like this: (110 is the data and P is the carriage return)
110.. . . . P
When I did the same thing on a record that's visually the same, but actually converted I got:
110. . . . . P
Notice the one that doesn't work had two dots close together. Can SQL Server store "hidden" data that would give me problems when I try to convert to numeric? Thanks in advance.
110.. . . . P
When I did the same thing on a record that's visually the same, but actually converted I got:
110. . . . . P
Notice the one that doesn't work had two dots close together. Can SQL Server store "hidden" data that would give me problems when I try to convert to numeric? Thanks in advance.