Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

How to move invalid data into rejected tables

$
0
0

Hi Folks,

I have Temp table that contains data, when we are move the data from temp to Final table we will do some validations.

TEMP Table-->Rejected Table-->Final Table

we are doing delete/insert logic for incremental loading ,so we have created composite primary key based on the key we will delete and insert operation will be doing.

here we have 2 possible cases 

Case1: If any of the primary key columns having nulls then we will load that data into rejected table and delete from Temp table.

Case2: Special characters will comes in the data those will be moved into the rejected table and delete from Temp.

First case we are handling but the 2nd case, i dont know how to check the each and every column of the table for special characters(invaliddata)


Viewing all articles
Browse latest Browse all 8428

Trending Articles



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