Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

flat file clean up

$
0
0

hi,

i am getting data something liek this in flat file

productid         name          description            schedule

2345-54-324      tylon        Serotonin Reuptake Inhibitor [EPC], Serotonin Uptake Inhibitors [MoA], Atypical Antipsychotic [EPC]

45673434         nepolp       Norepinephrine Reuptake Inhibitor [EPC], Norepinephrine Uptake Inhibitors [MoA]        CI

now i need  only productid,name and schedule

so in my falt file i am using tab as column delimeter,

when i preview data i am seeing something like this

productid      name   schedule

2345-54-324      tylon        Serotonin Reuptake Inhibitor [EPC], Serotonin Uptake Inhibitors [MoA], Atypical Antipsychotic [EPC]

45673434         nepolp       Norepinephrine Reuptake Inhibitor [EPC], Norepinephrine Uptake Inhibitors [MoA]

here schedule value will

null

ci

but instead of it i am getting description value.

i check  my mapping also, everythign is fine.

also, if defind varchar in my table ,does that data type should match with string ,in flat file connection manager.

example:

in table , varchar(6) , flat file connection : string(dt_str) 6

let me know


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>