Delete Empty column

Seven Stars

Delete Empty column

Dear Folks

 

i have a csv file and i want to move in SQL but  CSV file contain empty Column how i can delete it.


Accepted Solutions
Six Stars

Re: Delete Empty column

If you don't want to pass the NULL column to DB table, then don't mentioned the column name in DB table schema. It will not load the data into table.

 

For eg. you have csv file of below format:

e_id, Fname, Lname, City

and in DB you have: e_id, Fname, Lname

 

1) In tMap, you don;t need to mentioned the "City" column in output schema. It will load only 3 columns to DB table.

 

2) Using tFilterColumn, just delete the "City" column for tFilterColumn schema. It will load only 3 columns to DB table.

 

 

Let me know if you required anything else.


Regards,
Mohit

All Replies
Nine Stars

Re: Delete Empty column

Hi,

 

Can you please provide more details?

 

Regards,

 

Veeru Boppudi
Forteen Stars TRF
Forteen Stars

Re: Delete Empty column

Want to remove a column from a dataflow? Use tFilterColumn.

TRF
Six Stars

Re: Delete Empty column

If you don't want to pass the NULL column to DB table, then don't mentioned the column name in DB table schema. It will not load the data into table.

 

For eg. you have csv file of below format:

e_id, Fname, Lname, City

and in DB you have: e_id, Fname, Lname

 

1) In tMap, you don;t need to mentioned the "City" column in output schema. It will load only 3 columns to DB table.

 

2) Using tFilterColumn, just delete the "City" column for tFilterColumn schema. It will load only 3 columns to DB table.

 

 

Let me know if you required anything else.


Regards,
Mohit