Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


How to import Multiple data files (cvs files) into a single Table


How to import Multiple data files (cvs files) into a single Table

Author
Message
YSLGuru
YSLGuru
SSC Eights!
SSC Eights! (959 reputation)SSC Eights! (959 reputation)SSC Eights! (959 reputation)SSC Eights! (959 reputation)SSC Eights! (959 reputation)SSC Eights! (959 reputation)SSC Eights! (959 reputation)SSC Eights! (959 reputation)

Group: General Forum Members
Points: 959 Visits: 1659
kocamisu (9/19/2013)
Hi,

You need just a flat file source and ole db destination in data flow.

Also one multiple flat file connection manager and one connection manager to connect your db.

Now,in multiple flat file connection manager ;

In general tab choose your all csv files.You must define your "header row delimiter" as "vertical bar {|}" and format "demilited",if your files are delimited.
If your files have column name also click "columns names in the first row" in general tab.

Thats all.Run it.


Thanks Kocamisu for the suggestion and taking the time to reply constructively unlike some others.

Kindest Regards,

Just say No to Facebook!
kocamisu
kocamisu
Forum Newbie
Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: General Forum Members
Points: 4 Visits: 19
YSLGuru (9/19/2013)
kocamisu (9/19/2013)
Hi,

You need just a flat file source and ole db destination in data flow.

Also one multiple flat file connection manager and one connection manager to connect your db.

Now,in multiple flat file connection manager ;

In general tab choose your all csv files.You must define your "header row delimiter" as "vertical bar {|}" and format "demilited",if your files are delimited.
If your files have column name also click "columns names in the first row" in general tab.

Thats all.Run it.


Thanks Kocamisu for the suggestion and taking the time to reply constructively unlike some others.


Its my pleasure YSLGuru
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search