Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update syntax with Replace and Cast
Message
 
 
To
06/04/2015 15:20:20
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2012
Application:
Web
Miscellaneous
Thread ID:
01617831
Message ID:
01617840
Views:
31
Is SQL Server installation case sensitive or not?

>I have an update command like this:
>
>
>UPDATE EmailTemplate SET Subject_E=CAST(REPLACE(CAST(UPPER(Subject_E) AS NVarchar(MAX)),'[OldMemberTableName]','[Member]') AS NText)
>
>
>This works but it is case sensitive.
>
>If "OldMemberTableName" is like "OLDMEMBERTABLENAME", it will not be replaced.
>
>I tried inserting UPPER( syntax in there but it never replaces it properly.
>
>How can I make such command case insensitive?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform