dbTalk Databases Forums  

DTS--2000 vs. 2005

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


Discuss DTS--2000 vs. 2005 in the microsoft.public.sqlserver.dts forum.



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

Default DTS--2000 vs. 2005 - 04-14-2006 , 11:13 AM






Hello:

I don't understand why I could always use DTS without error in SQL 2000 but
get nothing but errors in SQL 2005.

All I am trying to do is to create a simple table, by DTS'ing a csv file
that was created from DTS'ing data from another table. Let me explain.

I have a database named DEV1 and a database named DYNCUSTOM. I DTS'ed a
table from DEV1 to a csv file. Then, I tried to use DTS to import this table
(csv file) and in effect create a table in the DYNCUSTOM database. Upon
doing so, I got the following error:

Error 0xc02020a1: Data Flow Task: Data conversion failed. The data
conversion for column "DEX_ROW_ID" returned status value 4 and status text
"Text was truncated or one or more characters had no match in the target code
page.".
(SQL Server Import and Export Wizard)

I always get truncation errors of this sort. This never happened to me in
2000. I always got this to work with no sweat. Any ideas?

Thanks!

childofthe1980s

Reply With Quote
  #2  
Old   
Andrew Watt [MVP]
 
Posts: n/a

Default Re: DTS--2000 vs. 2005 - 04-14-2006 , 11:51 AM






I assume when you say "DTS" in your third para that you mean
Integration Services. Is that correct? I assume you mean SSIS.

The error message suggests that either you are using the wrong code
page or that length on what I assume to be strings is different in the
source data store and the destination data store.

On the General tab of the Flat File Connection Manager there is a
dropdown for code page. That will tell you what code page you are
attempting to use.

On the Advanced tab of the Flat File Connection Manager you can set
the length for string data. If you have, say, a string of length 40 in
the Flat File connection manager and a char(20) in the destination
data store SSIS will assume that the data is being truncated.

Andrew Watt [MVP]

On Fri, 14 Apr 2006 09:13:01 -0700, childothe1980s
<childothe1980s (AT) discussions (DOT) microsoft.com> wrote:

Quote:
Hello:

I don't understand why I could always use DTS without error in SQL 2000 but
get nothing but errors in SQL 2005.

All I am trying to do is to create a simple table, by DTS'ing a csv file
that was created from DTS'ing data from another table. Let me explain.

I have a database named DEV1 and a database named DYNCUSTOM. I DTS'ed a
table from DEV1 to a csv file. Then, I tried to use DTS to import this table
(csv file) and in effect create a table in the DYNCUSTOM database. Upon
doing so, I got the following error:

Error 0xc02020a1: Data Flow Task: Data conversion failed. The data
conversion for column "DEX_ROW_ID" returned status value 4 and status text
"Text was truncated or one or more characters had no match in the target code
page.".
(SQL Server Import and Export Wizard)

I always get truncation errors of this sort. This never happened to me in
2000. I always got this to work with no sweat. Any ideas?

Thanks!

childofthe1980s

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

Default Re: DTS--2000 vs. 2005 - 04-14-2006 , 02:41 PM



No, when I say "DTS", I mean right-clicking on the database and choosing
Tasks...Export Data or Import Data.

I don't understand why the table that I'm inporting into would have issues
with the data source. You see, the table does not exist. It's being created!

Any other help would be apprciated.

Thanks!

childofthe1980s

"Andrew Watt [MVP]" wrote:

Quote:
I assume when you say "DTS" in your third para that you mean
Integration Services. Is that correct? I assume you mean SSIS.

The error message suggests that either you are using the wrong code
page or that length on what I assume to be strings is different in the
source data store and the destination data store.

On the General tab of the Flat File Connection Manager there is a
dropdown for code page. That will tell you what code page you are
attempting to use.

On the Advanced tab of the Flat File Connection Manager you can set
the length for string data. If you have, say, a string of length 40 in
the Flat File connection manager and a char(20) in the destination
data store SSIS will assume that the data is being truncated.

Andrew Watt [MVP]

On Fri, 14 Apr 2006 09:13:01 -0700, childothe1980s
childothe1980s (AT) discussions (DOT) microsoft.com> wrote:

Hello:

I don't understand why I could always use DTS without error in SQL 2000 but
get nothing but errors in SQL 2005.

All I am trying to do is to create a simple table, by DTS'ing a csv file
that was created from DTS'ing data from another table. Let me explain.

I have a database named DEV1 and a database named DYNCUSTOM. I DTS'ed a
table from DEV1 to a csv file. Then, I tried to use DTS to import this table
(csv file) and in effect create a table in the DYNCUSTOM database. Upon
doing so, I got the following error:

Error 0xc02020a1: Data Flow Task: Data conversion failed. The data
conversion for column "DEX_ROW_ID" returned status value 4 and status text
"Text was truncated or one or more characters had no match in the target code
page.".
(SQL Server Import and Export Wizard)

I always get truncation errors of this sort. This never happened to me in
2000. I always got this to work with no sweat. Any ideas?

Thanks!

childofthe1980s


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.