Solved

Data Transformation task to a specific (different) codepage

Posted on 2010-11-25
1
1,394 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
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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

786 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