This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
A derailleur seats a chain on one sprocket while a loose chain has no defined engagement

Unambiguous Date Literals: When 2026-04-03 Becomes March 4

May 5, 2014
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL DateTime, SQL Stored Procedure

A dashed date can change its mind with one session setting. Here is how to write dates that never do.

Read More
MySQL - Finding First day and Last day of a Month

MySQL – Finding First day and Last day of a Month

April 9, 2014
Pinal Dave
SQL Tips and Tricks
MySQL, SQL DateTime

MySQL has LAST_DAY to find the last day of a month but nothing built in for the first day. I show two simple methods to find the first day as well.

Read More
World Time Zones Map.

MySQL – How to Detect Current Time Zone Name in MySQL

February 16, 2014
Pinal Dave
SQL Tips and Tricks
MySQL, SQL DateTime

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.

Read More
Time Zone name dialog.

SQL SERVER – Get Current TimeZone Name in SQL Server

February 15, 2014
Pinal Dave
SQL Tips and Tricks
SQL DateTime

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.

Read More
MySQL - When to Use TIMESTAMP or DATETIME - Difference Between TIMESTAMP or DATETIME

MySQL – When to Use TIMESTAMP or DATETIME – Difference Between TIMESTAMP or DATETIME

February 14, 2014
Pinal Dave
SQL Tips and Tricks
MySQL, SQL 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.

Read More
Old curtains hung in a new home's window after a move, ending a hand's width short of the sill.

Checking Data Type Mapping After a Database Migration

January 21, 2014
Pinal Dave
SQL Tips and Tricks
Compatibility Level, DBA, SQL Datatype, SQL DateTime, SQL Migration

Audit data type mapping after migration, compare counts and checksum screens, inspect length and precision, and reconcile changed values.

Read More
An egg carton with some empty cups kept in place and one red painted egg

Counting Rows per Month With Zero-Filled Gaps

January 1, 2014
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Joins, SQL Reports, SQL Server

Build monthly counts with zero-filled gaps, generate a complete month range, and retain empty categories through a reporting scaffold.

Read More
Previous 1 … 10 11 12 13 14 15 16 … 29 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com