Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 Read xml file if exists and import into DB table

Author  Topic 

under2811
Constraint Violating Yak Guru

366 Posts

Posted - 2008-09-24 : 11:58:04
Hi,

I need to design SSIS package for xml file importing to table

what component i should use to read xml file and put this into DB table
also what syntax i used if i used component SQL Script and how to check if file is exists in that folder or not...if yes take it and read and then insert record from it to DB table.

Please help me out

T.I.A

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-09-24 : 12:06:48
xml file can be read using XML Source and you need OLEDB destination task to put it into table.
The existence of file can be checked using Script task and use conditioanl task to insert data only if it exists or use ForEachLoop with file enumerator to look for files in particular folder.
Go to Top of Page

under2811
Constraint Violating Yak Guru

366 Posts

Posted - 2008-09-25 : 03:33:03
ohhh

Thanks Again!!!
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-09-25 : 04:18:44
welcome
Go to Top of Page
   

- Advertisement -