I am new to SSIS and I am working on an assignment where I am reading some columns from a csv file and populating them into a SQL server 2008 table using SSIS. There is a column in the file for date field. If the column has any value other than a valid date in yyyy-MM-dd
format, I need to change that to NULL and populate it in the SQL server table. Can someone help? Currently, the file has "-" for some records and blank for some records. I see that I can use the ternary operator with ? and : just like java, but I am not sure how to use it if the file has any invalid value than the actual date.
Can someone help?