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 |
|
shailendrasingh
Starting Member
1 Post |
Posted - 2006-03-01 : 07:49:59
|
| Hi everybody,My problem is that i have a variable of type ntext which contain "\".i want to remove it or replace it.help me plzvery urgent.....cheers,shail |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-03-01 : 08:02:34
|
| Use ReplaceSelect Replace('tes\t','\','')MadhivananFailing to plan is Planning to fail |
 |
|
|
Srinika
Master Smack Fu Yak Hacker
1378 Posts |
Posted - 2006-03-01 : 08:06:37
|
| Select Replace(convert(varchar, My_ntext_Field),'\','') from MyTbl |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-03-01 : 08:11:51
|
quote: Originally posted by Srinika Select Replace(convert(varchar, My_ntext_Field),'\','') from MyTbl
When you use Convert, you should specify the size. Otherwise only 30 characters will be consideredSelect Replace(convert(varchar(4000), My_ntext_Field),'\','') from MyTblMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|
|
|