Solved

Replace the column.

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

Suggested Solutions

Title # Comments Views Activity
SQL query for highest sequence 4 63
SSIS GUID Variable 2 35
Need help with a query 3 39
T-SQL: How to extract records into a new table 7 20
In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
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.

733 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