Hi Michael,
I recommend using SSIS to load the flat file data into nvarchar columns first. Then test for numbers and dates with the T-SQL functions IsDate(col001) and IsNumeric(col002).
e.g.
insert into my_table_errors
select * from my_table where IsDate(col001) = 0
...and...
insert into my_table_errors
select * from my_table where IsNumeric(col002) = 0
If anyone can think of a simpler method that is just as reliable, please respond.
I recommend using SSIS to load the flat file data into nvarchar columns first. Then test for numbers and dates with the T-SQL functions IsDate(col001) and IsNumeric(col002).
e.g.
insert into my_table_errors
select * from my_table where IsDate(col001) = 0
...and...
insert into my_table_errors
select * from my_table where IsNumeric(col002) = 0
If anyone can think of a simpler method that is just as reliable, please respond.