Quantcast
Channel: SQL Server Migration forum
Viewing all articles
Browse latest Browse all 1700

SSMA for ORACLE | Unable to switch encoding error while moving the data.

$
0
0

We I have an oracle database with WE8ISO8859P1character set. I want to convert that to SQL Server 2014. For this I am using SQL Server Migration Assistant. In that database Ihave few tables on which I want to performthe migration on. In those tables I have XML data type. When I convert the schema then it works with few foreignkey reference error, which is ok. But when I try to migrate the data, I get the "Unable to switchencoding"error.

I have an enterprise version of SQL Server and I have created a database with the default Collation ("SQL_Latin1_General_CP1_CI_AS" )and no change anywhere.

The XML data from oracle has "<?xml version="1.0" encoding="utf-16"?>" which is causing problem.

What I have tried so far ?

 I have created a table just to check if I am able to reproduce this error. I Tried to insert the xml data in to the xml column and wolla ! I got the error. From this I understood that either I have to make the encoding to utf-8 (<?xml version="1.0" encoding="utf-8"?>) or put an "N" infront of the data to mark it as unicode.  But question is how do I do the same in SQL Server Migration Assistant ?

Please help I am stuck in this issue.


Viewing all articles
Browse latest Browse all 1700

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>