Loading many flatfiles into SQL Server 2005 -


i have annoying task. have load >100 csv-files folder sql server database. files have column names in first row. data type can varchar columns. table names in database can filename of csvs. doing use import/export wizard ssms, choose flatfile dropdown box, choose file, next->next->next , finish! ideas how can automate such task in integration services or other practical method?

note: files on local pc, db-server somewhere else, cannot use bulk insert.

you can use ssis - foeach loop container extract file names - arranging particular format.use variable dynamically fill variable file name.then in dataflowtask , use flat file source source - oledb destination.

please post sample file names.so can learn , guide properly.

thanks

achudharam


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -