SET DATEFORMAT date order ‘mmy’ is invalid.

Error Message:
Msg 2741, Level 16, State 1, Line 1
SET DATEFORMAT date order ‘mmy’ is invalid.

Severity level:
16.

Description:
This error message appears when an invalid date format was specified.

Consequences:
The SQL statement can be parsed, but cannot be executed and execution is stopped.

Resolution:
Error of the severity level 16 are generated by the user and can be fixed by the SQL Server user. In this case the invalid date format must be changed to a valid format.

Versions:
All versions of SQL Server.

Example(s):
SET DATEFORMAT mmy

Remarks:
In the above example we’ve tried to specify a date format in the form MonthMonthYear. Valid formats are, for example: mdy, dmy, ymd, ydm, myd, and dym. Valid characters are the initials for the englisch word Day, Month and Year.




Related Articles :

  • No Related Articles Found

No comments yet... Be the first to leave a reply!

Software Reviews | Book Reviews | FAQs | Tips | Articles | Performance Tuning | Audit | BI | Clustering | Developer | Reporting | DBA | ASP.NET Ado | Views tips | | Developer FAQs | Replication Tips | OS Tips | Misc Tips | Index Tuning Tips | Hints Tips | High Availability Tips | Hardware Tips | ETL Tips | Components Tips | Configuration Tips | App Dev Tips | OLAP Tips | Admin Tips | Software Reviews | Error | Clustering FAQs | Performance Tuning FAQs | DBA FAQs |