Hi all,
i have a substring in the format:
<name>john</name><lastname>Smith</lastname><left>true</left><datejoined>00-00-00</datejoined><member>true</member>
i am trying to change part of the substring within the
<datejoined>00-00-00</datejoined> to another value from a join with another table
i found out that the replace statement can be used but
my problem is because the dates within the <datejoined> </datejoined> to change varies per user
so whatever the date is in between the datejoined parameter, i have to replace it to qnopther value.
i know how to select the substring
select substring(properties, (charindex('<datejoined>', properties)+12),
(charindex('</datejoined>', properties)-(charindex('<datejoined>', properties)+12))))
but faling on replacing the value
thanks for pointers
babou
i have a substring in the format:
<name>john</name><lastname>Smith</lastname><left>true</left><datejoined>00-00-00</datejoined><member>true</member>
i am trying to change part of the substring within the
<datejoined>00-00-00</datejoined> to another value from a join with another table
i found out that the replace statement can be used but
my problem is because the dates within the <datejoined> </datejoined> to change varies per user
so whatever the date is in between the datejoined parameter, i have to replace it to qnopther value.
i know how to select the substring
select substring(properties, (charindex('<datejoined>', properties)+12),
(charindex('</datejoined>', properties)-(charindex('<datejoined>', properties)+12))))
but faling on replacing the value
thanks for pointers
babou