dbTalk Databases Forums  

Problem in Exporting table data to a flat file using DTS Package

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


Discuss Problem in Exporting table data to a flat file using DTS Package in the microsoft.public.sqlserver.dts forum.



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

Default Problem in Exporting table data to a flat file using DTS Package - 05-04-2005 , 12:51 AM






Hi,
I am exporting a table data to a flat file using DTS Package. Some of the
columns in the table contain special characters. After the data is exported,
the special characters in the flat file are not same as the special
characters in the columns of the table. How does this happen? How can I
resolve this?

Regards,

Sevugan.C

Reply With Quote
  #2  
Old   
Helge C. Rutz
 
Posts: n/a

Default Re: Problem in Exporting table data to a flat file using DTS Package - 05-04-2005 , 02:48 AM






Hi Sevugan,

"Sevugan" <Sevugan (AT) discussions (DOT) microsoft.com> schrieb im Newsbeitrag
news:C54C20E3-86D7-4D28-B56F-43708A1B841C (AT) microsoft (DOT) com...
Quote:
Hi,
I am exporting a table data to a flat file using DTS Package. Some of
the
columns in the table contain special characters. After the data is
exported,
the special characters in the flat file are not same as the special
characters in the columns of the table. How does this happen? How can I
resolve this?
which file format did you specifiy for the export file?
The default type is ANSI which may result in different presentation of
extented/unicode characters.
If your database datatype is unicode, then you should set the file format to
unicode also.
You can change this under the properties button of the file connection.

Helge




Reply With Quote
  #3  
Old   
Sevugan
 
Posts: n/a

Default Re: Problem in Exporting table data to a flat file using DTS Packa - 05-05-2005 , 03:48 AM



Hi Rutz,
The datatype of the field is char. But that field contains unicode
characters.
I set the file type to Unicode under the file properties in the DTS Package.
Still I am getting the same result(Some characters are getting converted
into others). How can I resolve this? Is there any other way?


--
Sevugan.C


"Helge C. Rutz" wrote:

Quote:
Hi Sevugan,

"Sevugan" <Sevugan (AT) discussions (DOT) microsoft.com> schrieb im Newsbeitrag
news:C54C20E3-86D7-4D28-B56F-43708A1B841C (AT) microsoft (DOT) com...
Hi,
I am exporting a table data to a flat file using DTS Package. Some of
the
columns in the table contain special characters. After the data is
exported,
the special characters in the flat file are not same as the special
characters in the columns of the table. How does this happen? How can I
resolve this?

which file format did you specifiy for the export file?
The default type is ANSI which may result in different presentation of
extented/unicode characters.
If your database datatype is unicode, then you should set the file format to
unicode also.
You can change this under the properties button of the file connection.

Helge




Reply With Quote
  #4  
Old   
Helge C. Rutz
 
Posts: n/a

Default Re: Problem in Exporting table data to a flat file using DTS Packa - 05-06-2005 , 04:17 AM



Hi Sevugan,

"Sevugan" <Sevugan (AT) discussions (DOT) microsoft.com> schrieb im Newsbeitrag
news:27B5F0C2-A009-41CE-81F6-3403290D1DB9 (AT) microsoft (DOT) com...
Quote:
Hi Rutz,
The datatype of the field is char. But that field contains unicode
characters.
I set the file type to Unicode under the file properties in the DTS
Package.
Still I am getting the same result(Some characters are getting converted
into others). How can I resolve this? Is there any other way?
when you really use char as datatype, then the representation of the data
is always influenced by the collation, because the byte values represent
different characters in different collations.
You can try to get the right output when you specify a SQL statement as
transform source, where you specify the collation you need for your data.

Helge




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.