- Procedure that loops through the Staging Table
- Update certain fields based on some rules
1. if [Data].[Finance_Project_
Number] = Null/Blank · Set [Processing_Result] = 2
· set [Processing_Result_Text] = “No Project Number”
2. if [Data].[Finance_Project_
Region] = Null/Blank · Set [Processing_Result] = 2
· set [Processing_Result_Text] = “No Region”
Also, on point no 2, how can I check for valid entries? Something like “one of”: Gauteng, Free State, Limpopo etc. If it is “one of” then it passes, otherwise;
· Set [Processing_Result] = 2
· set [Processing_Result_Text] = “Incorrect Region Entered”
3. Cross reference the customer number with another table.column: [Data].[Customer_Number] exists in [CustomerMaster].[Customer_
Code] if not:
· Set [Processing_Result] = 2
· set [Processing_Result_Text] = “Customer Number does not Exist”

Manas MohapatraRank #182 · 13.2K reputationPosted Jan 17, 2016, 9:27 PM EST
Nishant MittalRank #692 · 3.5K reputationPosted Jan 17, 2016, 9:06 PM EST
Manas MohapatraRank #182 · 13.2K reputationPosted Jan 17, 2016, 9:14 PM EST
onmyway365 .45 reputationPosted Jan 17, 2016, 9:16 PM EST
I am writing a C# windows service that validates the data in a Staging table, and then move certain records to a different table.
I was thinking of having a function called via a timed method.
Nishant MittalRank #692 · 3.5K reputationPosted Jan 17, 2016, 10:25 PM EST
onmyway365 .45 reputationPosted Jan 17, 2016, 9:19 PM EST
onmyway365 .45 reputationPosted Jan 17, 2016, 9:40 PM EST
onmyway365 .45 reputationPosted Jan 17, 2016, 10:28 PM EST
Nishant MittalRank #692 · 3.5K reputationPosted Jan 17, 2016, 10:32 PM EST