|
|
Question : Replacing a "&" in database. Getting errror
|
|
Hi All,
I'm getting the error "String or binary data would be truncated.The statement has been terminated." when I'm running a statement to replace the ampersand "&" in the database. My t-sql statement is below.
update mytable set myColumn=replace(myColumn,'&',' And ') where myColumnlike '%&%'
I'm running the same update for the "#" sign and it works fine. Is there something with the ampersand I should know about
Thanks,
|
Answer : Replacing a "&" in database. Getting errror
|
|
>>"String or binary data would be truncated.The statement has been terminated." << You need to increase the length of the column. You are increasing the length by 4 characters.
|
|
|
|
|