Solved

Replace the column.

Posted on 2011-03-14
2
362 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

948 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now