Finding the first day and last day of a month in MySQL takes LAST_DAY and a little date arithmetic. This post checks leap years and timestamp filters, then repeats the task in SQL Server with EOMONTH and DATETRUNC, tested on SQL Server 2025.
Time Zone Name in MySQL: How to Detect the Current One
Need the current time zone of the MySQL server you are connected to? One simple query with @@system_time_zone returns the time zone name.
SQL SERVER – Get Current TimeZone Name in SQL Server
What is the current TimeZone of the server where SQL Server is installed? Here is the short xp_regread script I use to read it.
MySQL – When to Use TIMESTAMP or DATETIME – Difference Between TIMESTAMP or DATETIME
Confused about TIMESTAMP or DATETIME in MySQL? I explain the two factors, starting with supported range, that help you decide which one to use.
Checking Data Type Mapping After a Database Migration
Audit data type mapping after migration, compare counts and checksum screens, inspect length and precision, and reconcile changed values.
Counting Rows per Month With Zero-Filled Gaps
Build monthly counts with zero-filled gaps, generate a complete month range, and retain empty categories through a reporting scaffold.
Clustered Key Choice for Date Range Queries: Date or Identity
Should you cluster on OrderDate? Measure one month of orders on three designs and see what each one costs in reads before you rebuild a table.







