Showing posts with label flat. Show all posts
Showing posts with label flat. Show all posts

Sunday, March 11, 2012

Compare fields-two flat files-load data

Hi All,

I am totally new to SSIS and im in the learing phase. I have a requirement as below,

I have two flat files (mainframe files), the structure i have given below,

File1:

070113

12345johnk

23456james

1st row is header record which has got date in YYMMDD format and remaining rows have emp no and emp name

File2:

070113

070113

070113

070113

contains 4 records which are dates.

The requirement is to compare the header date in file1 with the 4 dates in file2, if they are equal then it should load all the records in file1 except the header into a table and if they donot match then it should log an err msg. Please could someone provide a lead on this.

The files have same record length and fixed field delimited.

Thanks in advance

raj

Dear SSISQuest,

1. Add 2 flatFile Source

2. Add 2 Sort transform for each FlatFile Source

3. Add Inner Join Transform and do a LEFT JOIN

4. Add SQL Destination or other!

Helped?

regards!

Friday, February 24, 2012

Communication between tasks in an SSIS Package

Hi,
I have a Flat File Source and I want to retrieve few properties of it in an Script Component. How do I?

Also, How could I make the file path of Flat File Source or Connection manager dynamic or configurable through some file ?

any input is appreciated.

Fahad

Fahad349 wrote:

Hi,
Also, How could I make the file path of Flat File Source or Connection manager dynamic or configurable through some file ?

Fahad

Look at package configurations. The forum search will be your friend.

Sunday, February 12, 2012

command line tools to make flat backups

Does anyone know if there is a way to run a command at the DOS prompt
to make a complete flat file (.bak) backup of a database? I know you
can do this using the enterprise manager by right clicking on the
db..., but I am curious to find out if I can add a command into my
batch scripts as part of my code migration procedures?
Thanks!
-Mike
You could use osql e.g.
osql -Q "BACKUP DATABASE pubs TO DISK = 'e:\backups\pubs.bak'" -E
Ray Mond
|||Yes, Ray, Perfecto!! That's what I was looking for. Thanks for the
help...
Happy Holidays!!