Solved

How could I fix accents problems when porting a database from a DBMS to another?

Posted on 2011-09-14
3
404 Views
Last Modified: 2012-05-12
Hi experts,

I am currently moving several databases from MSSQL 2008 and IBM DB2 9.7 to PostgreSQL 9.0.3 using a commercial tool named ESF Database Migration Toolkit. This tool allows us to migrate any database from a DBMS to another in just a few clicks. It works really well and accelerates the migration process a lot.

The problem I have only occurs when migrating from MSSQL 2008 to PostgreSQL. All accents within the database are not getting transfered properly. For instance : "StÚphane" instead of "Stéphane".

It looks like a collation/locale problem, but I can't figure out what's wrong in my databases configurations.

MSSQL 2008 database information (source database)
collation : SQL_Latin1_General_CP850_CI_AI

MSSQL 2008 OS information (Windows 2008 Server R2)
Locale : English (Canada)

PostgreSQL database information (destination database)
ENCODING : UTF8
LC_COLLATE = 'English_Canada.1252'
LC_CTYPE = 'English_Canada.1252'

PostgreSQL OS information (Windows 2008 Server R2)
Locale : English (Canada)

Any thoughts? Everything works fine when porting from DB2.

Thank you
0
Comment
Question by:SolutionsTI
  • 3
3 Comments
 

Author Comment

by:SolutionsTI
ID: 36537983
I need to find a way to convert my MSSQL 2008 databases to UTF8 before migrating them to PostgreSQL.

Is there any way to achieve that kind of work in MSSQL 2008? I can't find the UTF8 codeset in Microsot SQL Server Management Studio.

Thank you
0
 

Accepted Solution

by:
SolutionsTI earned 0 total points
ID: 36538061
Problem is now fixed.

I changed the collation to French_CI_AI in MSSQL 2008 before migrating the database to PostgreSQL.
0
 

Author Closing Comment

by:SolutionsTI
ID: 36538062
I found the solution myself.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How do I subtract date and time within a same column in SQL 4 38
MS SQL Delete Query 9 31
Help Required 3 96
Unable to print after system state restore 32 21
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question