dbTalk Databases Forums  

Using DTS to move data to a new table with some datatype changes

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Using DTS to move data to a new table with some datatype changes in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
tdmailbox@yahoo.com
 
Posts: n/a

Default Using DTS to move data to a new table with some datatype changes - 05-07-2005 , 09:54 PM






I have a production application that I am building some upgrades using
a second (empty) copy the database. A few of the upgrades included
changing the datatypes of a few fields from varchar to int(all the
values in this column are already numbers)

I am not trying to move the data from the production database into the
blank database using DTS and the fields that had their datatypes
changed are getting dropped by dts.

Is there anyway to move this data easily through dts or through another
method and not have the fields with the datatype changes get dropped?

I have about 60 tables so it is not as simple as just copying and
pasting the data..


Reply With Quote
  #2  
Old   
John Bell
 
Posts: n/a

Default Re: Using DTS to move data to a new table with some datatype changes - 05-08-2005 , 05:01 AM






Hi

I can't see why this would be happening. What you may want to try is using a
SQL Statement as the data source then you can cast the column to the new
datatype or possibly using the same datatype and issue an alter table
command afterwards or just changing your live table to start with!

John

<tdmailbox (AT) yahoo (DOT) com> wrote

Quote:
I have a production application that I am building some upgrades using
a second (empty) copy the database. A few of the upgrades included
changing the datatypes of a few fields from varchar to int(all the
values in this column are already numbers)

I am not trying to move the data from the production database into the
blank database using DTS and the fields that had their datatypes
changed are getting dropped by dts.

Is there anyway to move this data easily through dts or through another
method and not have the fields with the datatype changes get dropped?

I have about 60 tables so it is not as simple as just copying and
pasting the data..




Reply With Quote
  #3  
Old   
Joško Šugar
 
Posts: n/a

Default Re: Using DTS to move data to a new table with some datatype changes - 05-09-2005 , 05:29 AM



tdmailbox (AT) yahoo (DOT) com wrote:
Quote:
I have a production application that I am building some upgrades using
a second (empty) copy the database. A few of the upgrades included
changing the datatypes of a few fields from varchar to int(all the
values in this column are already numbers)

I am not trying to move the data from the production database into the
blank database using DTS and the fields that had their datatypes
changed are getting dropped by dts.

Is there anyway to move this data easily through dts or through another
method and not have the fields with the datatype changes get dropped?

I have about 60 tables so it is not as simple as just copying and
pasting the data..

Check the source and destination tab in your transform data task. The
problem you described happened to me when I tried to migrate DTS
package. It had the old table as destination table.



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.