I have a field:
APP_DATE (smalldatetime)
I am making this request:
INSERT INTO table (TYPE, CODE, APP_DATE, DATE) VALUES ('APP', '123', '02/10/2010 12.30', GETDATE())
Fails:
Msg 296, Level 16, State 3, Line 1
Conversion from datatype char to smalldatetime generated a value not between the interval of valid values.
Instruction has been interrupted.
(0 row(s) affected)
What am I doing wrong? It seems to me that this is the correct format for the field.
Thank you for your time.
EDIT: SQL Server 2000
source
share