SSIS - Import text file Into SQL Server

Who is online?  0 guests and 0 members
Home  »  Forums   »  microsoft business intelligence   »  integration services   » SSIS - Import text file Into SQL Server

SSIS - Import text file Into SQL Server

Topic RSS Feed

Posts under the topic: SSIS - Import text file Into SQL Server

Posted: 3/15/2010

Padawan 140  points  Padawan
  • Joined on: 2/16/2010
  • Posts: 40

Hi, I know how to import text file into sql server, I created SSIS package for this one.

Before I import I want to do small changes in text file, basically find and replace.

I would like to FIND "SM 4500 NO3F, 20th Ed." and REPLACE with "SM 4500 NO3F 20th Ed." how can i do that.

do I need to use script? please help me.

Thanks

 


Posted: 3/15/2010

Jedi Master 4924  points  Jedi Master
  • Joined on: 10/27/2009
  • Posts: 272

You can do one of two things. You can do this with a script task and read in each line.

Or you can set up a data flow and read in the entire line as one column. Then use a derived column transform to do the find replace on the entire line. Write this data to a staging flat file and read that in your regular data flow.


tags SSIS, Replace

Posted: 4/6/2010

Jedi Master 4924  points  Jedi Master
  • Joined on: 10/27/2009
  • Posts: 272
Answered  Answered
Page 1 of 1 (3 items)