dbTalk Databases Forums  

Exporting to Text file Encoding

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Exporting to Text file Encoding in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
kapsolas
 
Posts: n/a

Default Exporting to Text file Encoding - 01-03-2006 , 09:47 AM






I am in a bit of a dilemma. I have a DTS package set up to query a table
some some string concatenation and eventually spit out the results to a text
file.

When running the T-SQL code from query analyzer, my results look perfect as
they should, the correct encoding is retained and all, ex António José.

However when same code is executed through the DTS package (Transform data
task) what I get in the exported file is Ant¢nio Jos[box].

I have been playing with this for a day about and can't seems to track down
what the issue might be.

I have tried Unicode, OEM, and ANSI with no good results. Other packages
which are sent to ANSI work just fine.

Any ideas would be helpful.

thanks.


Reply With Quote
  #2  
Old   
kapsolas
 
Posts: n/a

Default RE: Exporting to Text file Encoding - 01-03-2006 , 11:29 AM






doh! was my table declaration. I had my fields declared as varchar which
internally automatically converts the text to ASCII, converted the table to a
nvarchar and everything works fine..

Hope someone else digging through the newsgroups some day finds this helpful.

"kapsolas" wrote:

Quote:
I am in a bit of a dilemma. I have a DTS package set up to query a table
some some string concatenation and eventually spit out the results to a text
file.

When running the T-SQL code from query analyzer, my results look perfect as
they should, the correct encoding is retained and all, ex António José.

However when same code is executed through the DTS package (Transform data
task) what I get in the exported file is Ant¢nio Jos[box].

I have been playing with this for a day about and can't seems to track down
what the issue might be.

I have tried Unicode, OEM, and ANSI with no good results. Other packages
which are sent to ANSI work just fine.

Any ideas would be helpful.

thanks.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.