Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
SQL Server DTS Discussion specific to Data Transformation Service with SQL Server. General SQL Server discussions should use the general SQL Server forum. Readers of the book Professional SQL Server 2000 DTS with questions specific to that book should post in that book forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server DTS section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 23rd, 2003, 12:57 AM
Registered User
Join Date: Sep 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default transfering identites as foreign keys

i want to use dts to transfer data from one sql server to another. lets consider that i have 4 tables A,B,C,D. i have identity coulm in every table which is primary key of taht table. also primay key of table A is forign key in table B, and primay key of table B is forignm key of table C and primary key of table C id forign key of another more than 10 tables. how shuld i transfer this data which distutbinmg foreign key - primary key relation .can any one help me.
thanks in advance

Old September 23rd, 2003, 09:28 AM
Authorized User
Join Date: Jul 2003
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts

If you take a look at the options tab in the "Transfor Data Task Properties" you should find an option called "Enable identity insert" in the SQL Server section at the bottom of the dialog box. Also, depending on how much data you have, it is recommended to change the "Insert batch size" to something like 10,000 so that your entire transaction (table) doesn't have to commit at one time...

Good Luck!


Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Design: Foreign Key to Multiple Primary Keys? kalel_4444 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 10 May 8th, 2008 04:14 PM
list foreign keys in sql 2000 jomet SQL Server 2000 2 May 1st, 2008 11:15 PM
list foreign keys jomet Oracle 2 March 28th, 2008 04:17 AM
Copying Databases & Foreign Keys donevco Access 5 February 20th, 2007 08:31 AM
inserting records with foreign and primary keys tdaustin Classic ASP Basics 0 October 4th, 2005 12:49 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.