select @Name = replace(@Name, c, r)
from (
select t.c, c.r from
(values ('#'),('%'),('&'),('{'),('}'),('\'),('|'),('/'),('>'),('<'),('*'),('?'),('$'),('!'),(''''),('"'),(':'),('@'),('+'),('~'),('='),('-')
) t(c) cross join (values ('_')) c(r)
union all
select c, r from (values (' ',' '),(' ',' '),(' ',' '),(char(13),' '),(char(10),' ') ) t(c,r)
) t