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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combining text files automatically?!?

Status
Not open for further replies.

ImLost

Technical User
Mar 9, 2001
9
US
I have the following problem.
The system I'm working on loads files from outside and uses the information to validate and update itself. The database is run on SQL7.0.
The problem is that a new process demands that we load 2 text files into a table so we can validate information on the user's level. The two files have the same layout, but one of the files includes outdated information which we do not want to load. The second file to be loaded has the up to date information that is outdated in the first file.

Confused yet?!?

What we are trying to do:
Remove the outdated data (which is easily identified) from the first file and then append the information from the second file. The whole process of course should be automatic and without user intervention.
 
I fotgot to mention.

The two files also have the same names.
 
You can use the SQLServer DTS (data transformation service) to schedule and load these two files to separate tables and to run clensing stored procedures that would remove the outdated info and place the remaining data into a consolidated target table. Well, thats one way! (Content Management)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top