Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update syntax with Replace and Cast
Message
From
06/04/2015 16:23:20
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2012
Application:
Web
Miscellaneous
Thread ID:
01617831
Message ID:
01617839
Views:
25
>Why do you need to cast to nvarchar(max) and not varchar(max)? Are you using unicode? Also, why do you need to cast back to ntext? I don't think you need to cast back and it should work fine.

The syntax was targeting a memo field. This is why a direct REPLACE() cannot be used.

As far as replacing content from a memo field, if you have a simplest way to achieve that, I will look at it.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform