Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Johnyalm
Starting Member
49 Posts |
Posted - 2005-09-15 : 04:53:32
|
| I have a table with a contentfield - datatype ntext.Now I would like to REPLACE textstirngs in some of the content of the field. But REPLACE does not work om ntext - are there a shot work around, do you have an example that I can try?thansk in andvance...www.mirrorgate.com |
|
|
ditch
Master Smack Fu Yak Hacker
1466 Posts |
Posted - 2005-09-15 : 04:58:10
|
you have to use UPDATETEXT - there are some good examples in Bokks Online :)Duane. |
 |
|
|
Johnyalm
Starting Member
49 Posts |
Posted - 2005-09-15 : 05:08:49
|
quote: Originally posted by ditch you have to use UPDATETEXT - there are some good examples in Bokks Online :)Duane. 
OK, I have seen the examples, but I do not follow - or understand.I have a repeted patterna @lt; (= tagstart <) and tag end (>) that I need to replace in the contenttext field, wich contains hmtl source code converted by a system into <TAGGNAME> - and now I want to replace all the <, and > into < >.And there is a lot of them of course - is there a nice aoul out there that can help me with a hint to how to go about to du this?www.mirrorgate.com |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
Johnyalm
Starting Member
49 Posts |
Posted - 2005-09-15 : 05:38:43
|
THANKS a lot, exactly what I needed!Best wishes!Johny Almquote: Originally posted by madhivanan See if this helps youhttp://www.mindsdoor.net/SQLTsql/ReplaceText.htmlMadhivananFailing to plan is Planning to fail
www.mirrorgate.com |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-09-15 : 07:21:13
|
>>Best wishes!You are welcome MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|