SSIS has a native XML data source. Is there a reason you don't want to use it?
You could then separate the shredding of the XML from the work being done on
the data it provides. In other words, let SSIS do the heavy lifting with
reading the XML and use the stored proc to handle the data.
It would seem like a lot less maintenance to me.
Dan
[quoted text, click to view] "farshad" wrote:
> I have created a stored procedure to handle xml data.
> One of the inputs to this procedure is xmldata which is basically the
> contents of the xml in a file.
> Now I would like to create a sql server 2005 SSIS package that takes the xml
> files from the network and uses this SP.
> Should I have a file system task inside a for loop container?
> How do I get started on this please?
> Thanks