SQL: Think that T-SQL EOMONTH() just returns the end of month? Think again!
In a recent post, I wrote how the T-SQL TRIM() function was more than just an LTRIM(RTRIM()) and that it took me a while to realize that. Well today, I found another one that I hadn’t noticed before: EOMONTH.
I was writing a SELECT clause for a query, when the Intellisense popped up:
And suddenly I noticed “Param2” and wondered what on earth the second parameter was.
Now you might notice that the Intellisense isn’t very helpful on this. It gives you no hint what the parameters are. In fact, for many of the features added to T-SQL in SQL Server 2012, the Intellisense is really poor. Here’s another example:
2019-08-29