sql - SSIS package to execute a stored procedure for each xml document is a specific directory -



sql - SSIS package to execute a stored procedure for each xml document is a specific directory -

i have table column type of xml. have directory can have 0 n number of xml documents. each xml document, need insert new row in table , throw xml xml column.

to fit our clients needs, need perform operation using ssis package. plan utilize stored procedure insert xml, passing in file path.

i've created stored procedure , tested, functions expected.

my question is, how execute stored procedure ssis bundle each xml document specific directory?

thanks in advance help. -

you don't need utilize stored procedure this. can of within ssis package. here's how:

have for-each loop task read available files in folder. set total path of file variable called xmlfilename

inside for-each loop, utilize data-flow task read contents.

the ole_src reading same sql server , it's statement select getdate() currentdatetime

the derivedcolumn component creates column called xmlfilepath total path of xml file

the importcolumn component 1 magic. take xmlfilepath input column, give lineageid of new output column create , import total xml you. read more on how set here:

http://www.bimonkey.com/2009/09/the-import-column-transformation/

use oledb destination write table.

sql sql-server visual-studio-2008 ssis

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -