Solved

Data Transformation task to a specific (different) codepage

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
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.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

695 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