Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 5123

dash (-) character is being converted to – when stored on the table

$
0
0

Hi,

We are experiencing odd convertion of data. The dash (-) character is being converted to – when stored on the table. The source column's datatype is varchar(max) while the target table is varchar(8000). Sure enough, the data doesn't exceed 8000 characters. The query is being executed via stored procedure, and that procedure is executed through sqlcmd. The stored procedure's functionality is just retrieving data from different tables and store those processed data on a table. I've tried running the "select" statement only of the stored procedure, and I can't see the odd character – on the result. However, when I include running the "insert" statement, when I check the result, the dash (-) character is being replaced with –. I've also tried running the whole query of that same stored procedure on a lower environment, the odd character – didn't replace the dash (-) character.

Some idea guyz?


Viewing all articles
Browse latest Browse all 5123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>