SQLzoo.net

Can't insert data because of incompatable formats.

SQL Server
If the data inserted is of the wrong type the insert may fail. Because the date format may depend on the local settings this may cause confusion. Using a 4 digit year and a three character month works for most systems (in English speaking regions).
Execute tidy up code silently


Specific to SQL Server
The string 'abcdedf' is rejected (too long). The date '10-11-12' is accepted (as US format).

Related links:

  • INSERT, UPDATE and DELETE