Microsoft
Software
Hardware
Network
Question : Replace part of ntext field SQL
I used that code:
UPDATE CMRC_Products set Desc = replace(Cast(LongDesc AS NVARCHAR(Max)), '+ System.Configuration.Confi
gurationMa
nager.AppS
ettings["D
omain"]+',
'@mysite.com')
Its says row affected, but its not true... noting was changed!
So I want to change the part of the email address (@mysite.com) in the file to + System.Configuration.Confi
gurationMa
nager.AppS
ettings["D
omain"]+'
Any help?
Answer : Replace part of ntext field SQL
your replace structure in in the reverse order
UPDATE CMRC_Products set Desc = replace(Cast(LongDesc AS NVARCHAR(Max)), '@mysite.com','+ System.Configuration.Confi
gurationMa
nager.AppS
ettings["D
omain"]+')
Random Solutions
How to use CDatabase's ExecuteSQL to find the record or row and then get the result, such as in CRecordSet
Does waiting for a web service's reponse use "clock cycles"?
SBS 2003 Error - Windows could not start because of an error in the software. Please report this problem as : load needed DLLs for kernel.
Unable to remove buritos.exe trojan from UPS email
Use a second axis in Acces PivotChart
Displaying list data in a Microsoft Report Viewer control
Installing Exchange 2007 Managment Tools on Windows 7
Why don't I have access?
Does Office 2003 SP3 include SP1 and SP2 ?
Help! Why are my desktop icons changing to "no program" icon?