[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Data Transformation task to a specific (different) codepage

Posted on 2010-11-25
1
Medium Priority
?
1,418 Views
Last Modified: 2013-11-10
Running SQL 2008, database is collated as SQL_Latin1_General_CP1_CI_AS.

Created a very basic data transformation task - source is a select on a table in DB, destination is a flat file.  I need this file to be generated in codepage 850.   The table basically contains varchar fields, and my select statement does not cast or convert them.

1) How can I confirm my output file is in right codepage? (maybe it's working and I don't even know it!) I have opened it in Firefox, and tried to look at the word Cinépop - it comes out the same no matter what I've tried.

2) How can I output the destination file as a different codepage?

I have tried:
- Just setting the codepage on the destination file connection string
- Using a data conversion task to convert to dt_str and specifying the codepage
- Advanced properties of source object, and changing output columns from dt_wstr to dt_Str with codepage 1252.

Note: When I create the source object, it flagged them all as dt_wstr.
0
Comment
Question by:gozoliet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
gozoliet earned 0 total points
ID: 34213951
Seems I've answered my own question.

1) To verify, just looking the file can work if you know the codepage, but if you open the txt in Firefox you can change the codepage on the fly.. very handy. My problem was that in effect all of my changes were not doing anything to the output so I was always seeing the same thing.

2) The problem most likely was because I was using flat file destinations that had already been set as 1252, and changed them afterwards. This had no effect. When I deleted the data transformation, and the destination connection, and re-created it making sure to specify the right codepage on creation, it just worked.  Stupid.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

656 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