Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TSQL transforming reserved xml characters
Message
From
16/01/2014 07:57:27
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
TSQL transforming reserved xml characters
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:
01591988
Views:
90
There are times when I need to copy data from a text column in sqlserver to another text column. The destination text column must have all xml reserved characters transformed. For example if the originating column has "call in < 10 minutes" then I have to transform it to "call in < 10 minutes"

I use a sql statement with
"UPDATE " + TableName + " SET " + column2 + " = (select " + column1 + " from " + TableName + " WHERE column1.id = ' " + idvalue + " ' ).... 
to handle copying the 1st column's data to the destination column which works great, however I now need to transform those reserved characters if they exist because the destination column has the same information but formatted for xml and do not want to add any additional process to store into a variable and transform then copy if I can avoid it.

Ideas?
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Next
Reply
Map
View

Click here to load this message in the networking platform