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
SQL SERVER - System Function @@IDLE to Find System Ideal Time

SQL SERVER – System Function @@IDLE to Find System Ideal Time

November 26, 2016
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Server

Running @@IDLE returns a number that is hard to read. Here is what this system function measures and how to turn it into idle time you can understand.

Read More
How to Introduce Time Delay Between Two T-SQL Commands? - Interview Question of the Week #091

How to Introduce Time Delay Between Two T-SQL Commands? – Interview Question of the Week #091

October 2, 2016
Pinal Dave
SQL Interview Questions and Answers
SQL DateTime, SQL Function, SQL Server

How do you introduce a Time Delay between two T-SQL commands? An interview question developers ask often, answered with WAITFOR DELAY.

Read More
SQL SERVER - Puzzle - Change in Date Format with Function

SQL SERVER – Puzzle – Change in Date Format with Function

September 20, 2016
Pinal Dave
SQL Puzzle
SQL DateTime, SQL Function, SQL Scripts, SQL Server

SELECT GETDATE() shows both date and time. A simple Date Format puzzle: show only the date part using a function. How many ways can you find?

Read More
SQL SERVER - Puzzle - Playing with Datetime with Customer Data

SQL SERVER – Puzzle – Playing with Datetime with Customer Data

September 15, 2016
Pinal Dave
SQL Puzzle
SQL DateTime, SQL Scripts, SQL Server

A customer sent me code that converts datetime values stored in his data. This puzzle is about playing with datetime conversions. Guess the output first.

Read More
SQL Server Calendar Tool.

SQL SERVER – Find Week of the Year Using DatePart Function

September 2, 2016
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Server

I plan my blog a week at a time. Here is a query using the DATEPART function to get the week of the year plus the first and last date of that week.

Read More
SQL SERVER 2016 - STRING_SPLIT Function Performance Comparison - Notes from the Field #118

SQL SERVER 2016 – STRING_SPLIT Function Performance Comparison – Notes from the Field #118

March 17, 2016
Pinal Dave
SQL Tips and Tricks
Notes from the Field, SQL DateTime, SQL Function, SQL Scripts, SQL Server

Splitting strings once meant temp tables or CROSS APPLY. In Notes from the Field #118, Kathi Kellenberger compares STRING_SPLIT performance in SQL Server 2016.

Read More
Interview Question of the Week #046 - How @@DATEFIRST and SET DATEFIRST Are Related?

Interview Question of the Week #046 – How @@DATEFIRST and SET DATEFIRST Are Related?

November 22, 2015
Pinal Dave
SQL Interview Questions and Answers
SQL DateTime, SQL Scripts

How are @@DATEFIRST and SET DATEFIRST related? One sets the first day of the week for your session, the other reads it back, and language matters too.

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

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