dbTalk Databases Forums  

PLEASE HELP! Moving data to a table with an identity.

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


Discuss PLEASE HELP! Moving data to a table with an identity. in the microsoft.public.sqlserver.dts forum.



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

Default PLEASE HELP! Moving data to a table with an identity. - 09-08-2005 , 10:42 AM






Hi all, I'm in the middle of a conversion so pressed for time. Real simple.
I set up and ran a DTS package to copy data from two identical tables from
server A event_history table to server b Event_history table. The server b
table was empty at the time and created from script. Both tables had a
column named seqno which is an identity.

My question is when the data is copied from server A to server B, will it
preserve the seqno (identity) column from server a or assign it a new one
based on the seed on server B event_history. The DTS package ran
successfully, but I can't go back to check since the other database has been
overwritten. I didn't set up anything differnt than a standard copy on the
DTS package. Any guidance would be appreciated.
Thanks.
Don
Vector Security Inc.


Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: PLEASE HELP! Moving data to a table with an identity. - 09-08-2005 , 12:09 PM






Problems With IDENTITY() and the DataPump task.
(http://www.sqldts.com/default.aspx?293)


"Don" <Don (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi all, I'm in the middle of a conversion so pressed for time. Real
simple.
I set up and ran a DTS package to copy data from two identical tables from
server A event_history table to server b Event_history table. The server
b
table was empty at the time and created from script. Both tables had a
column named seqno which is an identity.

My question is when the data is copied from server A to server B, will it
preserve the seqno (identity) column from server a or assign it a new one
based on the seed on server B event_history. The DTS package ran
successfully, but I can't go back to check since the other database has
been
overwritten. I didn't set up anything differnt than a standard copy on the
DTS package. Any guidance would be appreciated.
Thanks.
Don
Vector Security Inc.




Reply With Quote
  #3  
Old   
Thomas Bradshaw via SQLMonster.com
 
Posts: n/a

Default Re: PLEASE HELP! Moving data to a table with an identity. - 09-08-2005 , 12:42 PM



Darren is correct.

An empirical test which shows the IDENTITY column from source is ignored by
the destination IDENTITY column, meaning it starts over (1,2,3 etc.).

Tom Bradshaw


--
Message posted via http://www.sqlmonster.com

Reply With Quote
  #4  
Old   
Darren Green
 
Posts: n/a

Default Re: PLEASE HELP! Moving data to a table with an identity. - 09-08-2005 , 01:34 PM



Thomas Bradshaw via SQLMonster.com wrote:
Quote:
Darren is correct.

An empirical test which shows the IDENTITY column from source is ignored by
the destination IDENTITY column, meaning it starts over (1,2,3 etc.).

Tom Bradshaw


Using the correct settings you can actually do it either way around you
would like.

--
Darren Green
http://www.sqldts.com
http://www.sqlis.com


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.