Hi I created a table in which one column is of date
type and also works as PK. I tried to insert value 2009-01-07
into this column and had this error. Isn't Date default format yyyy-mm-dd
? I don't understand this.
Msg 241, Level 16, State 1, Line 3
Conversion failed when converting date and/or time from character string.
This is my query:
INSERT INTO Table_Name
Values ('2009-01-07', other column values)