Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TSQL transforming reserved xml characters
Message
From
16/01/2014 08:44:47
 
 
To
16/01/2014 08:37:45
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01591988
Message ID:
01592002
Views:
115
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform