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
Miliseconds difference in SQL Server window.

SQL SERVER – Puzzle with Milliseconds – Win USD 50 Amazon Gift Card

November 18, 2015
Pinal Dave
SQL Puzzle
Embarcadero, SQL DateTime

Why do ’14:48:34.69′ and ’14:48:34:69′ give different DATETIME values? Solve this puzzle with milliseconds to win a USD 50 Amazon Gift Card.

Read More
SQL SERVER - Adding Datetime and Time Values Using Variables

SQL SERVER – Adding Datetime and Time Values Using Variables

October 30, 2015
Pinal Dave
SQL Tips and Tricks
SQL DateTime

Adding a time variable to a datetime variable throws Msg 402. The fix is to CAST the time to datetime first. Examples of adding datetime and time values.

Read More
Last day of a month.

SQL SERVER – Finding If Date is Last Day of the Month

September 24, 2015
Pinal Dave
SQL Tips and Tricks
SQL DateTime

Did an employee join on the last day of the month? I show the add one day trick and the EOMONTH function from SQL Server 2012 to check it.

Read More
Interview Question of the Week #036 - What is the difference between @@DATEFIRST and SET DATEFIRST?

Interview Question of the Week #036 – What is the difference between @@DATEFIRST and SET DATEFIRST?

September 13, 2015
Pinal Dave
SQL Interview Questions and Answers
SQL DateTime

What is the difference between @@DATEFIRST and SET DATEFIRST? SET DATEFIRST changes the first day of the week, and @@DATEFIRST returns the current value.

Read More
SQL SERVER - Puzzle - Inside Working of Datatype smalldatetime

SQL SERVER – Puzzle – Inside Working of Datatype smalldatetime

July 31, 2015
Pinal Dave
SQL Puzzle
SQL DateTime

A developer got odd results when casting strings sent from an app. This puzzle looks at how the smalldatetime datatype works inside SQL Server.

Read More
Wooden jigsaw puzzle with scattered pieces on a table, a SQL Server puzzle

SQL SERVER – Puzzle with Year Function

June 9, 2015
Pinal Dave
SQL Puzzle
SQL DateTime, SQL Scripts, SQL Server

After my MONTH() contest, here is a puzzle with YEAR function: what do MONTH and YEAR return for the date 0001-1-1, and why? Take a guess first.

Read More
SQL SERVER - Quiz on knowing DATEPART and DATENAME Behaviors

SQL SERVER – Quiz on knowing DATEPART and DATENAME Behaviors

April 1, 2015
Pinal Dave
SQL Tips and Tricks
SQL DateTime

Think date and time functions are a pain? Test yourself with this quick quiz on DATEPART and DATENAME behaviors in SQL Server.

Read More
Previous 1 … 5 6 7 8 9 10 11 … 19 Next
  • Books
  • Testimonials
  • Privacy Policy

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