dbTalk Databases Forums  

The easiest way to extract data

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


Discuss The easiest way to extract data in the comp.databases.ms-sqlserver forum.



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

Default The easiest way to extract data - 08-23-2010 , 08:37 PM






Hello -

I like to merge two databases (contains the exact same structure) data
together. What is the easiest/best way to do that?

Most tables in both databases have sequential increment numbers as PK
ID numbers; therefore I need to skip extracting the PK ID and just
reinsert/repopulate it.

Thanks in advance.

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: The easiest way to extract data - 08-24-2010 , 02:08 AM






xo (xo5555ox (AT) gmail (DOT) com) writes:
Quote:
Most tables in both databases have sequential increment numbers as PK
ID numbers; therefore I need to skip extracting the PK ID and just
reinsert/repopulate it.
Are these incremental IDs also used as foreign keys in other tables?


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx

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.