How do I format dd-mmm-yy values in flat file to smalldatetime during data import?
问题 I have a flat file which is imported into SQL Server via an existing SSIS package. I need to make a change to the package to accommodate a new field in the flat file. The new field is a date field which is in the format dd-mmm-yy (e.g. 25-AUG-11 ). The date field in the flat file will either be empty (e.g. a space/whitespace) or populated with a date. I don’t have any control over the date format in the flat file. I need to import the date field in the flat file into an existing SQL Server