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
clear cache

SQL SERVER – Remove All Query Cached Plans Not Used In Certain Period

March 7, 2020
Pinal Dave
SQL Performance
Execution Plan, SQL Cache, SQL DateTime, SQL Function, SQL Scripts, SQL Server, SQL Server DBCC

Recently I got a very unique situation where I had to Remove All Query Cached Plans Not Used In Certain Period. Let us learn about that today. 

Read More
print statement

SQL SERVER – PRINT Statement and Format of Date Datatype

August 23, 2019
Pinal Dave
SQL Tips and Tricks
File format, SQL DateTime, SQL Function, SQL Scripts, SQL Server, SQL String

we took a 5 minutes coffee break and during that short time, one of the DBA asked me a question about PRINT Statement and DataType.

Read More
DATETIMEFROMPARTS

SQL SERVER – Building Date and Time with DATETIMEFROMPARTS()

August 17, 2019
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Scripts, SQL Server, SQL String

Today we will have very simple learning about Building Date and Time with DATETIMEFROMPARTS(). We will build the DateTime using a function.

Read More
Find out current language of the session.

SQL SERVER – Find Out Current Language of the Session

February 8, 2019
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Server

How do you find the current language setting of your session? A reader asked me, and @@LANGID with sys.syslanguages gives the answer in one short query.

Read More
12:00 digital clock.

How to Trim TIME Part in DATETIME Values? – Interview Question of the Week #200

November 18, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL DateTime, SQL Function, SQL Server, SQL String

How to trim TIME part in DATETIME values? A reader wanted to keep only the date and the hour, so here are ways to cut off the minutes and seconds.

Read More
Result column flipping between 1 and 0.

Puzzle – Datatime to DateTime2 Conversation in SQL Server 2017

November 16, 2018
Pinal Dave
SQL Puzzle
SQL DateTime, SQL Scripts, SQL Server, SQL Server 2017

At PASS, SQL Server expert Christopher Savage showed me a puzzle on DateTime to DateTime2 conversion in SQL Server 2017. I still have no answer, so can you solve it?

Read More
An icon set with time, calendars and checkmarks.

SQL Server – Formatted Date and Alias Name in ORDER BY Clause

September 28, 2018
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Order By, SQL Scripts, SQL Server

Format a date with CONVERT, then use its alias in ORDER BY, and the rows come back in a different order. Here is a simple example of this formatted date surprise.

Read More
Previous 1 2 3 4 5 6 7 … 19 Next
  • Books
  • Testimonials
  • Privacy Policy

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