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
patch your SQL

Patch Your SQL Server – SQL in Sixty Seconds #100

August 13, 2020
Pinal Dave
SQL Tips and Tricks
Cumulative Update, SQL in Sixty Seconds, SQL Patch, SQL Server, SQL Service Pack

When did you last time patch your SQL Server? I often discuss this question with my clients, I get many different kinds of answers.

Read More
A wide old rocking chair left on the pavement outside the narrow door of a new apartment block.

Moving to Azure SQL Database: The Features You Give Up

August 10, 2020
Pinal Dave
SQL Tips and Tricks
Cloud Computing, SQL Azure, SQL Migration, SQL Server

Plan moving to Azure SQL Database by finding Agent jobs, cross-database references, CLR, FILESTREAM, linked servers, and recovery changes.

Read More
Gouache painting of nested clay bowls on the left and the same bowls spread apart on the right, with the smallest bowl vermilion

TSQL_SCALAR_UDF_INLINING: How to Disable Scalar UDF Inlining

August 1, 2020
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL Server 2019

TSQL_SCALAR_UDF_INLINING is the database scoped setting that switches scalar UDF inlining off. This post builds a demo database, proves with execution counts that inlining is on or off, and shows the narrower switches at function and query level. It ends with the undo statement.

Read More
Gouache painting of six mugs in a row on a shelf in cream, slate blue, vermilion, sage and grey

Day Name From Date in SQL Server: DATENAME, FORMAT and More

July 27, 2020
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts

Finding the day name from date values takes one function, but three methods exist, and they differ on language and speed. This post compares DATENAME, FORMAT and a formula that ignores language and DATEFIRST. It measures all three on a million rows and shows how the session language changes the result.

Read More
Gouache painting of a line of sandcastles that the tide never reached with a vermilion bucket beside the nearest one

Temp Tables For Destruction: Why the Counter Stays Near Zero

July 25, 2020
Pinal Dave
SQL Tips and Tricks
SQL Counter, SQL Performance, SQL Scripts, SQL TempDB

The Temp Tables For Destruction counter stays flat at zero while Temp Tables Creation Rate moves, and that confuses people. This post explains what each counter counts, reads both from T-SQL, measures a creation loop, and shows that a cached temp table in a procedure moves neither counter.

Read More
Gouache painting of a bicycle wheel on a repair stand with a vermilion fork and a tool tray beside it

Column Statistics in SSMS: Update One With the Dialog

July 24, 2020
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server Management Studio, SQL Statistics

You can update column statistics in SSMS from the Properties window of a statistic, but a dialog gives no proof that anything happened. This post lists the steps, then uses T-SQL to prove the update with the modification counter and the sample size. It also shows why a full scan needs a statement of its own.

Read More
Gouache painting of a wooden hopper pouring wheat in and flour out into a bowl, with the hopper painted vermilion

Dynamic SQL Output Parameter: Pass Values In and Out Safely

July 23, 2020
Pinal Dave
SQL Tips and Tricks
Dynamic SQL, SQL Scripts, SQL Stored Procedure

A dynamic SQL output parameter lets a statement built at run time hand a value back to the caller. This post shows input, output and input/output parameters with sp_executesql, explains the errors you meet, and measures why parameters beat concatenation: one reusable plan instead of ten, and no injection.

Read More
Previous 1 … 46 47 48 49 50 51 52 … 572 Next
  • Books
  • Testimonials
  • Privacy Policy

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