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 hand weighing one brick on a spring scale in front of a large pallet of identical bricks

Estimating vector Column Storage Before Loading Embeddings

January 7, 2020
Pinal Dave
SQL Tips and Tricks
AI, SQL Data Storage, SQL Datatype, SQL Server

Estimate vector column storage from dimensions, measure DATALENGTH and table allocation, and separate payload bytes from page overhead.

Read More
Gouache painting of a picnic blanket pinned down at its corners by stones, one of them vermilion

LPIM in Configuration Manager: Enable Lock Pages in Memory

January 7, 2020
Pinal Dave
SQL Tips and Tricks
SQL Memory, SQL Server 2019, SQL Server Configuration, SQL Server Services

You can set LPIM in Configuration Manager without editing the local security policy by hand. This post shows where the property sits, how to read it from PowerShell, and how to check the result with T-SQL after the restart. It also explains why a memory cap comes first.

Read More
Title card: Backed Up on a Server Running Version 15.00.2000

SQL SERVER – SQL Azure Managed Instance Restore Error – The Database Was Backed Up on a Server Running Version 15.00.2000

January 3, 2020
Pinal Dave
SQL Tips and Tricks
SQL Azure, SQL Backup and Restore, SQL Error Messages, SQL Server

One of my clients migrated to SQL Azure Managed Instance and contacted me for an interesting situation. Let us resolve Restore Error.

Read More
Gouache painting of a vermilion triangle block resting in a wooden ring beside sage cubes and cream rings on a playroom rug

ISNUMERIC Function Returns 1 for 12e5: What to Use Instead

January 2, 2020
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL String

The ISNUMERIC function returns 1 for strings that are not plain numbers, such as 12e5, a lone dollar sign and a lone plus. This post shows what it accepts, why, and which tests to use instead. It covers TRY_CAST and its blank string quirk, TRY_PARSE, and the digit pattern checks readers suggest.

Read More
Gouache painting of a fresh pattern sheet pinned on cloth with vermilion scissors beside a pile of crumpled old patterns

OPTION (RECOMPILE) Hint: When a Fresh Plan Pays Off

December 31, 2019
Pinal Dave
SQL Tips and Tricks
Parameter Sniffing, Query Hint, Recompile, SQL Scripts, SQL Stored Procedure

The OPTION (RECOMPILE) hint tells SQL Server to build a new plan every time a statement runs. This post measures the page reads it saves on skewed data, the compile cost it adds, the filtered index it unlocks, and how to apply it to one statement of a procedure.

Read More
A hand tapping a plaster cast of a carved column top in a workshop, the original column visible outside.

Running DBCC CHECKDB on a Restored Copy Instead of Production

December 28, 2019
Pinal Dave
SQL Tips and Tricks
Database Corruption, DBA, SQL Backup and Restore, SQL Server DBCC

Run CHECKDB on a restored copy to validate a recoverable backup, retain the full check output, and understand what remains untested.

Read More
A lone railway carriage standing lit at a platform after its engine has uncoupled and left.

GLOBAL_TEMPORARY_TABLE_AUTO_DROP: Keeping ## Tables Alive on Purpose

December 26, 2019
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL Server Configuration, SQL TempDB, Temp Table

Understand GLOBAL_TEMPORARY_TABLE_AUTO_DROP, its version and database scope, explicit cleanup, and the risks of shared global tables.

Read More
Previous 1 … 62 63 64 65 66 67 68 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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