http://www.perlmonks.org?node_id=763486


in reply to MSSQL to MySQL via perl

Hi there,

Microsoft SQL Server and Sybase ASE/IQ/SQL Anywhere will replace unknown characters with a question mark when the default character set does not match the character set of the data being imported.

Recommendation: extract the data out of you MySQL database in a delimited file (csv) using the utf8 (unicode) character set. Import into SQL Server using bcp specifying utf8 with "-Jutf8" parameter and character mode "-c".

Jason L. Froebe

Blog, Tech Blog

Replies are listed 'Best First'.
Re^2: MSSQL to MySQL via perl
by Anonymous Monk on May 12, 2009 at 15:03 UTC

    It appears the OP wants to go MSSQL --> MySQL, not the other way round.

      Somehow I missed that :( The same rules apply: extract out and in with the same character set.

      Jason L. Froebe

      Blog, Tech Blog