Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2011-09-14
3
Medium Priority
?
426 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

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

926 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