I have a simple update query:
UPDATE SERVICES.dbo.MASTER
SET DATEOFLEAVING = CONVERT(Char,b.DATELEAVE,103)
FROM SERVICES.dbo.MASTER a JOIN SERVICES.dbo.EXITINTERVIEW b
ON a.STAFFNO = b.STAFFNO
When I run the query I receive the error message:
Server: Msg 242, Level 16, State 3, Line 1
The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.
The statement has been terminated.
Can anyone help?
UPDATE SERVICES.dbo.MASTER
SET DATEOFLEAVING = CONVERT(Char,b.DATELEAVE,103)
FROM SERVICES.dbo.MASTER a JOIN SERVICES.dbo.EXITINTERVIEW b
ON a.STAFFNO = b.STAFFNO
When I run the query I receive the error message:
Server: Msg 242, Level 16, State 3, Line 1
The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.
The statement has been terminated.
Can anyone help?