trx
trx

Reputation: 2157

Creating CSV file with Header and Sending it through the Flat File Assembler

I have to query a view in database, map this schema and create a CSV file with Header. The Header should be the name of each field in the view. I tried using the Flat file Schema to create a Header Record and Body Record.I created the Header Record with Elements having the default value as the name of each field in the view. It works good.But I am wondering if there is any other better way of doing this. It would be great if anyone suggest me the best way of doing this.

Upvotes: 0

Views: 1338

Answers (1)

DTRT
DTRT

Reputation: 11040

What you've done is likely the most common solution for this requirement. There's nothing wrong with it.

There may be different solutions, but not necessarily better.

Upvotes: 1

Related Questions