?
Solved

Data Transformation task to a specific (different) codepage

Posted on 2010-11-25
1
Medium Priority
?
1,413 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

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…
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
Suggested Courses

770 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