Design Data Validation System in SQL SERVER

Rosalina5 161 Reputation points
2023-07-14T16:43:10.7133333+00:00

I have 5 source system which is sending data in .csv format and it is getting loaded to SQL SERVER System.

Can anyone please suggest the design approach for Data Validation.

basically a reconciliation system, which allow to perform data validation in sql server .

Tech Stack :

C#, sql server, asp.net (wcf)....

Thank You so much.

Developer technologies .NET Other
SQL Server Other
Developer technologies C#
0 comments No comments
{count} votes

Accepted answer
  1. Yitzhak Khabinsky 26,586 Reputation points
    2023-07-14T18:12:37.1+00:00

    Hi @Rosalina5,

    *.csv/txt flat files always have host of problems where column delimiters, column separators, invisible characters like null terminators \0, special characters based on encoding, and line breaks are in the middle of the actual data. Or data elements are missing completely.

    The most reliable format for data feeds is XML enforced by an XSD. An XSD plays a role of a data contract between sender and receiver. It will guarantee proper data format/shape, data types, cardinality, and enforce data quality.

    SQL Server Integration Services (SSIS) has two tasks for your needs:

    • XML Task, Operation Validate, to validate XML file against an XSD.
    • XML Source Adapter, to ingest data.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Vahid Ghafarpour 23,385 Reputation points Volunteer Moderator
    2023-07-14T17:29:14.2333333+00:00

    I opt for utilizing an automated flow to stage data, validate the ETL process, and populate the production table.

    And suggest using SSIS and SQL Agent Jobs.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.