Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

On Error Redirect Rows ( Failing Rows Redirect and XML)

$
0
0

Hi All,

In My current project, all SSIS Package flow is that, in case of failure It will redirect raw to error table.Error table is having same structure  of original table but only diff between Error and Destination table is that Error table is have datatype Nvarchar for all column with size 4000.

For Example:
-----------

Table:Emp

Empid Int
EmpName Varchar(50)
Salary Decima(25,8)


Table : ErrorEmp

Empid NVarchar(4000)
EmpName NVarchar(4000)
Salary NVarchar(4000)


Now my database table count increase day by day.So, I want to maintain some common structure like for every failing rows It will insert data into XML column.

I want to insert  separate Raw for each failing rows  and also that XML structure will be dynamic (not for specific table).This component can be used for any package as a part of my framework.

Table: ErrorMaster

Id bigint
TableName Varchar(100)
Errorstring XML


Can someone help me with that to achieve my goal ?


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>