Question : SQL DateTime conversion

I am trying to copy a varchar field in a source table to a new table field that is DateTime.  I cannot complete the process because I get an error "The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value." How can I find the data causing me problems?

Answer : SQL DateTime conversion



SELECT CAST ('1900-01-01 '+ STUFF(STUFF( CALL_TIME, 5,0,':' ), 3,0, ':' ) as datetime )
FROM Stage_Dialer_History
WHERE  isdate(CALL_TIME) = 0
Random Solutions  
 
programming4us programming4us