Guest User

Untitled

a guest
Feb 12th, 2012
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. ALTER FUNCTION [camera].[replace_msword_chars]
  2. (
  3. -- Add the parameters for the function here
  4. @col_value varchar(8000)
  5. )
  6. RETURNS varchar(8000)
  7. AS
  8. BEGIN
  9. -- Declare the return variable here
  10. DECLARE @replaced_value varchar(8000)
  11.  
  12. -- Add the T-SQL statements to compute the return value here
  13. SET @replaced_value = replace(replace(replace(replace(
  14. @col_value, '’', char(39)),
  15. '“', char(34)),
  16. '”', char(34)),
  17. '–', char(45))
  18.  
  19. RETURN @replaced_value
  20. END
Advertisement
Add Comment
Please, Sign In to add comment