Karthi, you can create a function like below...and u can use that as i showed i below.
create function fnreplaceText
(
@str varchar(max)
) returns varchar(max)
as
begin
return replace(replace(@str,'Cent','Pence'),'$','£')
end
GO
select dbo.fnreplaceText( 'Cost of 12 centimeter scale is $15, is of 40cents.')
commented on Jun 1 2011 12:01PM