|
next
|
Subject: Invalid characters on relational data import Author: Justin Ream Date: 22 Feb 2006 05:29 PM
|
David,
Thanks for the reply.
1. RDBMS is Microsoft SQL Server 2000, SP4.
2. The datatype of the field is text. A lot of these offending characters come from details of attacks/viruses launched against our customers webservers.
The regexp I used to strip the resulting XML is:
s/[\x00-\x08\x0b-\x0c\x0e-\x1f]//g
The SQL/XML is:
SELECT
XMLELEMENT(name "row",
XMLELEMENT(name "Company",t.Company),
XMLELEMENT(name "TicketID",t.TicketID),
XMLELEMENT(name "ticketdate",t.ticketdate),
XMLELEMENT(name "tickettime",t.tickettime),
XMLELEMENT(name "owner",t.owner),
XMLELEMENT(name "Subject",t.Subject),
XMLELEMENT(name "description",t.description),
XMLELEMENT(name "referenceID",t.referenceID),
XMLELEMENT(name "status",t.status)
)
FROM AbacBill.dbo.InitialTicketsImport t
Thanks,
-j
>Hi, Justin. Can you help us
>understand better what's going
>on by answering a few
>questions:
>
>1. What database are you
>accessing?
>2. What's the datatype of the
>text fields that contain the
>types of characters that are
>giving you problems.
>
>Also, if you could provide a
>sample of the SQL/XML and
>resulting XML, that would be
>great. Please send what you
>can to stylus-field-report at
>progress dot com.
>
>Thanks.
>
>David Foster
>Stylus Studio Team
|
|
|
|