SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 Import / Export and Referential Integrity
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ArachPres
Starting Member

2 Posts

Posted - 10/12/2005 :  11:42:32  Show Profile  Reply with Quote
Alright, I'm not new to SQL Server but I am new to importing and exporting data. I am familiar with only a few options which include using the BCP utility and Data Transformation Services.

I have used the GUI interface to the DTS and found that it can export single tables at a time using specified queries. What I have also noticed is that DTS appears to ignore table triggers when re-importing data.

I need to know if there is a way to export cross-table data from SQL Server 7 and SQL Server 2000 to a text file or series of text files and then import the data into another SQL database with an identical schema while explicitly maintaining referential integrity between the tables upon reinserting into the new database.

Is this possible at all???? And if so, can it be done with BCP, DTS, or Replication ?


-Mike

X002548
Not Just a Number

15586 Posts

Posted - 10/12/2005 :  12:04:07  Show Profile  Reply with Quote
bcp will ignore RI



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx
Go to Top of Page

ArachPres
Starting Member

2 Posts

Posted - 10/12/2005 :  15:39:01  Show Profile  Reply with Quote
How about Data Transformation Services or Replication ? Something called "Merge Replication" looks as though it might be able to be used as a means for accomplishing my problem of exporting and importing while maintaining referential integrity.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.31 seconds. Powered By: Snitz Forums 2000