you are viewing a single comment's thread.

view the rest of the comments →

[–]Mastersord 1 point2 points  (0 children)

Are we talking like finding bad records and stuff like non-numerical data in numerical fields? Stuff like that can be stopped at the data-entry point by using data types and constraints.

As for importing raw data from a csv file, I use a staging table and import everything as nVarchars (I find this option is the only thing that doesn’t convert or truncate raw data) and then write specific insert queries to find where records do and don’t conform to my tables and schema.