[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 369
  • Last Modified:

Replace the column.

I am trying to create a SSIS package where i have 2 txt files and be loaded into SQL.


txt file1 (10k records)                                                                txtfile 2(one record)
    empid  ename t1date                                                                t2date

I have the first text file with columns (empid,ename,t1date) with some 10k records and now i want this date column be replaced with date column of second text file(t2date). this second txt file contains only one record and one column. can I replace this one recrd with all 10k records?
I want to replace all these 10k records of t1date column with t2date record.

Hope am clear
Any suggestions is higly appreciated.
0
parpaa
Asked:
parpaa
1 Solution
 
Ryan McCauleyCommented:
You're describing your problem both ways - which of the following situations are you trying to accomplish:

You have two text files, and you'd like to output the contents of file 1, but with the date in file1 replaced with the date from the single row in file2 (for all records)
You'd like to fill file2 with the contents of file1
You'd like to update file1, replacing the data in every row with the date from file2

Please clarify your question and I can help provide a solution to get this accomplished.
0
 
parpaaAuthor Commented:
I have two text files, and you'd like to output the contents of file 1, but with the date in file1 replaced with the date from the single row in file2 (for all records)

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now