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
Wool carders beside eight nearly equal bundles of cream wool

Splitting Work Into Equal-Sized Batches With NTILE

November 4, 2011
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Server

NTILE deals 100 customers into eight batches in one query. The catch is keeping those batches stable while new rows arrive.

Read More
An open blank notebook with several plain bookmarks beside a small magnifying glass on wood.

How to Read a Stored Procedure You Did Not Write

November 4, 2011
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

Learn to read stored procedure code by tracing inputs, writes, transactions, errors, and dependencies before trying to understand every line.

Read More
Two plain ceramic mugs beside an open blank notebook and pencil on a quiet wooden table.

Interview Questions That Actually Reveal SQL Skill

November 3, 2011
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

Use SQL Server interview questions that reveal reasoning about joins, NULLs, performance, and recovery instead of rewarding memorised trivia.

Read More
A fitted spaetzle maker shapes pale batter into evenly sized pieces

CODEPAGE 65001: Importing UTF-8 Text Files Without Garbled Accents

November 2, 2011
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Server

Your import turned Élodie into odd symbols. Here is how CODEPAGE 65001 fixes the reading, and why the column type still matters.

Read More
Gouache painting of a row of pebbles, a notched stick, a clay pot and a small red cabinet of drawers on a table

Relational, Document, Graph and Vector: Choosing the Right Data Model

November 1, 2011
Pinal Dave
SQL Tips and Tricks
Database, JSON, NoSQL, SQL Scripts

Choosing the Right Data Model means matching the shape of your data to the questions you ask. This post stores one bookshop four ways in SQL Server 2025, with relational tables, JSON documents, graph tables and a vector column, and runs the question each one answers best. It ends with a rule for choosing.

Read More
A cake tester with damp crumbs beside several small cakes from one batch

Searching Every Error Log for Slow I/O Warnings

October 28, 2011
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Server

The warning you need may be in an archived log. Here is a short loop that searches every retained error log and tells you which ones it could not read.

Read More
A small flashlight beside a closed notebook and plain ceramic mug on a dim wooden desk.

What to Check When You Are Woken at Three in the Morning

October 26, 2011
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

Use a DBA on call checklist to establish impact, inspect blocking and disk space, review failed jobs, and choose a safe next step during incidents.

Read More
Previous 1 … 21 22 23 24 25 26 27 … 52 Next
  • Books
  • Testimonials
  • Privacy Policy

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