I do a BULK Insert reading a CSV file. One of the values in this CSV file stores a date, "20080919"
In a WHERE clause I need to compare this CSV value to a smalldatetime field in a SQL Server 2005 table. The value in the table will look like this: "2008-09-19 00:00:00".
I know I need to convert one or both, what's the best approach?