Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

OSQL Unicode Insert of ^F (Hex 06) from Registry Multi-String Value is Duplicating in DB
I'm using a Unicode sql script imported using OSQL.  One of the values
we are attempting to insert is a Registry Multi-String value by passing
a string to a stored procedure.  These Multi-String values appear to be
delimited by a Hex 06 (^F) character.  When I import this character,
embedded in a string preceeded by an N, i.e

 N'somethingsomethin
g2something3'

I end up with TWO of this character in the db.  I get :

 somethingsomething
2something3

Any help figuring out why or how to fix this?  We MUST use Unicode due
to extended character sets, so NOT using Unicode is NOT a solution.


Report this thread to moderator Post Follow-up to this message
Old Post
googlegrouper
07-26-05 06:23 PM


Re: OSQL Unicode Insert of ^F (Hex 06) from Registry Multi-String Value is Duplicating in DB
Seems to be an encoding issue.  We are using SQLXML to retrieve the
data initially.  That seems to be UTF-8 encoding the data which creates
an xml stream that contains an odd escape sequence.  This escape
sequence is not then being translated into the correct unicode
representation in the insert scripts (which are created by transforming
the xml).  We are going to try Unicode encoding on the SQLXmlCommand
object and setting the xml to encoding=UTF-16 to see what happens.


Report this thread to moderator Post Follow-up to this message
Old Post
googlegrouper
07-27-05 01:24 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

Microsoft SQL Server forum archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 11:27 AM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006