February 23, 2005 at 4:43 pm
need help to create function Replace on TEXT field
and in the text field i have a HTML code
i wont to Replace the PATH in the HTML code
from server-relative
to
absolute URL
if in the HTML code i have an image
like this " /images/emotions/whistling.gif "
i wont Replace to
" http://www.sqlservercentral.com/forums/images/emotions/whistling.gif "
Replace this = " /images/emotions/ "
to this = " http://www.sqlservercentral.com/forums/images/emotions/"
how to do this
and after use it in view in sql server
thnks
ilan
February 28, 2005 at 8:00 am
This was removed by the editor as SPAM
February 28, 2005 at 3:05 pm
this should get you started
declare @path varchar (150)
set @path = 'http://www.sqlservercentral.com/forums' +
(select top 1 [image] from [image table] where [criteria is met])
select @path
March 1, 2005 at 5:51 pm
need more help
how to do it ??????????
create function to Replace text from table
in field type TEXT
thnks ilan
March 1, 2005 at 8:09 pm
Ilan,
Take a look at BOL for Create Function. Between that and Seth's suggestion you should be well on your way.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply