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 2012 Forums
 SSIS and Import/Export (2012)
 Loading XML Source TO SQL SERVER 2012 Problem

Author  Topic 

krubug
Starting Member

7 Posts

Posted - 2013-09-29 : 08:39:04
Hello

I have an XML Source And XSD Witch define the xml schema.

i developed a small ssis package wich use the xml source and the xsd to get one of the tables.

I also built the same table with the prefix ERR to holds data that dont mach with the xsd.

the ssis have two lags - one that Inset correct data and the other (error output) that Insert

Uncorrect to the ERR tables.

The Problem is that UNCorrect data dont insert to the ERR table and Inserted to one that Holds Corrects Records.

is there a way to write records witch not match with XSD to an Error Table?

for example in XSD Field SUG (Type Integer)can get 1 OR 2 OR 3.
in the XML in put in the field SUG the value 4.

I want that this record will enter the ERR table . now it's enter
to the main Table .

Thanks,



visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-09-30 : 08:50:36
duplicate of

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=188529

please dont cross post

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -