Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 23rd, 2003, 12:57 AM
Registered User
 
Join Date: Sep 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default transfering identites as foreign keys

hi,
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
santaji

  #2 (permalink)  
Old September 23rd, 2003, 09:28 AM
Authorized User
 
Join Date: Jul 2003
Location: Clearwater, FL, USA.
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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!

Jeff



 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:14 AM.


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