Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update syntax with Replace and Cast
Message
 
 
À
06/04/2015 16:25:23
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Web
Divers
Thread ID:
01617831
Message ID:
01617856
Vues:
26
>>Is SQL Server installation case sensitive or not?
>
>It is not. But, this is about a Text field (it hasn't been converted yet) and a cast is necessary for the replace.

Try Unicode literals
UPDATE EmailTemplate SET Subject_E=CAST(REPLACE(CAST(UPPER(Subject_E) AS NVarchar(MAX)),N'[OldMemberTableName]',N'[Member]') AS NText)
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform