Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TSQL transforming reserved xml characters
Message
De
16/01/2014 08:44:47
 
 
À
16/01/2014 08:37:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01591988
Message ID:
01592002
Vues:
117
This message has been marked as the solution to the initial question of the thread.
>>>>the SQL server (TSQL) equivalent for
>>>>
>>>>Strtran(Strtran(Strtran(m.tcChain, [&], '&#38;'), [<], '&#60;'), [>], '&#62;')
>>>>
>>>
>>>Exactly! :) Now if I just knew what it was.... :)
>>
>>http://technet.microsoft.com/en-us/library/ms186862.aspx
>
>Both columns are TEXT :(

Cast them ?
select cast(Replace(Replace(Replace(cast( col1 as nvarchar(max)), '&', '&#38;'), '<', '&#60;'), '>', '&#62;') as Text)
	from @TmpPrefix
		
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform