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
Gouache painting of a windowsill of cacti with the tallest one wearing a vermilion cork cap

Escape Text for JSON: Build Valid JSON With STRING_ESCAPE

February 16, 2021
Pinal Dave
SQL Tips and Tricks
JSON, Quotes, SQL Scripts, SQL Server, SQL String

To escape text for JSON, pass each value through STRING_ESCAPE, so JSON built by hand stays valid. A demo shows which characters it escapes and which it leaves alone. It also shows when JSON_MODIFY and FOR JSON make it unnecessary.

Read More
Forwarded Records and Performance

Forwarded Records and Performance – SQL in Sixty Seconds #155

February 15, 2021
Pinal Dave
SQL Tips and Tricks
SQL Data Storage, SQL Heap, SQL in Sixty Seconds, SQL Scripts, SQL Server

Forwarded records make SQL Server read extra pages when it scans a heap. In this SQL in Sixty Seconds video, I explain forwarded records and performance.

Read More
Gouache painting of a balance with a bowl of many small cherries on one pan and one giant orange pumpkin on the other

Which Tables Are Huge: Rows Versus Size in SQL Server

February 12, 2021
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Server

Rows versus size decides which tables are huge in SQL Server. One query reads sys.dm_db_partition_stats and ranks every table twice, by rows and by size. A demo shows 300 rows that outweigh 300,000 rows, and why the older join misleads.

Read More
Gouache painting of a crowded kitchen counter of vegetable bowls with an extra cart beside it, one bowl vermilion.

Internal Temporary Tables in MySQL: When a Query Spills to Disk

February 11, 2021
Pinal Dave
SQL Performance
MariaDB, MySQL, SQL Performance, SQL Scripts

MySQL and MariaDB build internal temporary tables behind your back for GROUP BY, DISTINCT, UNION and derived tables. This post counts them with status counters, reads them in EXPLAIN, shows what pushes one to disk, and removes one with an index.

Read More
Preserved fittings are assembled and inspected in a separate test cabinet.

SQL SERVER – Check Backup Reliability

February 10, 2021
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, SQL Server

Backup Reliability needs a successful restore followed by integrity and application validation. Customers ask whether they can skip that exercise.

Read More
A missing courtyard stepping stone leads through a red-ribboned side path to the relocated slab.

SQL SERVER – Finding Fragmentation in Forwarded Records

February 9, 2021
Pinal Dave
SQL Performance
SQL Data Storage, SQL Heap, SQL Scripts, SQL Server

Finding Fragmentation in a heap also requires a separate check for forwarded records. I measure their effect before choosing maintenance.

Read More
An empty fitted recess and preserved fragments are inspected for evidence of removal.

SQL SERVER – Who Dropped Table? Part 2

February 8, 2021
Pinal Dave
SQL Tips and Tricks
SQL Log, SQL Scripts, SQL Server, SQL Server Security

A dropped table can leave transaction-log clues, but those clues are not a complete audit trail. My original investigation had limits.

Read More
Previous 1 … 75 76 77 78 79 80 81 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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