Solved

Replace the column.

Posted on 2011-03-14
2
365 Views
Last Modified: 2013-11-10
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
Comment
Question by:parpaa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 28

Accepted Solution

by:
Ryan McCauley earned 500 total points
ID: 35130224
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
 

Author Comment

by:parpaa
ID: 35130321
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

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question