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 market stall of identical brown paper bags, a hand opening them one by one to find what is inside.

Entity-Attribute-Value Tables: Why They Hurt Queries

May 8, 2020
Pinal Dave
SQL Tips and Tricks
JSON, Normalization, Schema, SPARSE Columns, SQL Server

Understand entity-attribute-value query costs, lost types, indexing limits, and alternatives using real columns, sparse columns, or JSON.

Read More
A hand sets a plate on its embroidered outline on a half-set table, a red jug in the center.

Writing Rerunnable Deployment Scripts for Database Changes

May 1, 2020
Pinal Dave
SQL Tips and Tricks
Best Practices, DevOps, SQL Scripts, SQL Server

Write rerunnable deployment scripts with guarded schema changes, version records, and a dry run on a restored database copy.

Read More
sqlcmd mode

SQL SERVER Management Studio and SQLCMD Mode

April 30, 2020
Pinal Dave
SQL Tips and Tricks
SQL Download, SQL Scripts, SQL Server, SQL Server Management Studio, sqlcmd, Testing

Honestly, there is an alternative way to quickly use SSMS SQLCMD mode as a development environment, let us learn about it today. 

Read More
Gouache painting of a wide channel splitting into small garden channels through one vermilion sluice gate

Query Store On or Off for Every Database: Review First

April 25, 2020
Pinal Dave
SQL Tips and Tricks
Query Store, SQL DMV, SQL Scripts, SQL Server Configuration

To turn Query Store on or off for every database, you need one statement per database, because there is no server switch. This post builds a tested script that writes the statements, lets you read them and then runs them in one batch. It also covers READ_ONLY mode and the model database.

Read More
Gouache painting of a hose overflowing a full bucket onto a path beside a tap with a vermilion wheel

SSMS Command Timeout: What the Execution Time-out Does

April 23, 2020
Pinal Dave
SQL Tips and Tricks
SQL Extended Events, SQL Server Configuration, SQL Server Management Studio, Testing

The SSMS command timeout is the number of seconds a query window waits before it cancels a batch. This post lists the four places a time-out can come from and reproduces a client time-out with sqlcmd and PowerShell. It also shows how an Extended Events session proves that the client gave up.

Read More
Gouache painting of a basket of apples capped by a vermilion plank, with more apples left on the grass around it

SSMS ROWCOUNT Setting: Why Your Query Stops at 100 Rows

April 22, 2020
Pinal Dave
SQL Tips and Tricks
Execution Plan, SQL Performance, SQL Server Configuration, SQL Server Management Studio

The SSMS ROWCOUNT setting limits every query in a window to a fixed number of rows, and it can change the plan as well. This post shows the effect on rows, reads and plan with a tested demo, how to check your own session and why UPDATE statements stop at the limit too.

Read More
Gouache painting of an open old trunk with brass binoculars resting on a vermilion cloth

sp_helpdb in SQL Server: List Databases and Their Files

April 21, 2020
Pinal Dave
SQL Tips and Tricks
SQL Command, SQL Data Storage, SQL Scripts, SQL Stored Procedure

sp_helpdb in SQL Server lists every database on an instance, or the files of one database, with a single call. This post builds three small databases, reads the output column by column and explains why db_size is text. It also shows how to filter the result and how to find free space.

Read More
Previous 1 … 52 53 54 55 56 57 58 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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