Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTS QUESTION

Status
Not open for further replies.

swoodring

Programmer
Dec 7, 2000
114
US
Is there a way in a dts to say if it already exists to update otherwise to write the record. I'm having a file come across which I need to either update if it already exists or add it. Its pretty much a field for field copy.
 
This is a common task in data warehousing. I accomplish this using SQL code to check the file and then decide whether to update the table or insert into the table.



Cody ford
Data Mining, Cleansing and Reporting Specialist
codyjford@hotmail.com

SQL, VB6, Seagate Info/Crystal Reports

 
Buthow do you do this in a dts? Usually you just say copy field 1 in table1 to field 1 in table 2. Where would you check first to see if it exists or don't you do it in a dts and just use a sql script to do it all instead?
Stacy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top