I import into a temporary "staging" table will all columns set to Varchar/Nvarchar and massively wider than they anticipated data, I can then do tests likeSELECT CASE WHEN LEN(Col1) <= 200 THEN '' ELSE 'Col1 >200 char. ' END + CASE WHEN IsDate(Col2) = 1 THEN '' ELSE 'Col2 not a valid date. ' END AS [ErrorMessage], *FROM MyStagingTable
to find where columns are too wide for the target table, etc.Then when I've cleaned up the mess
I can doINSERT INTO MyTargetTableSELECT *FROM MyStagingTable