Solved

Data Transformation task to a specific (different) codepage

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

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.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now