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
SQL SERVER - Add Auto Incremental Identity Column to Table After Creating Table

SQL SERVER – Add Auto Incremental Identity Column to Table After Creating Table

October 11, 2014
Pinal Dave
SQL Tips and Tricks
SQL Identity, SQL Scripts

Can you add an auto incremental identity column to a table after it is created? The answer is both no and yes, and I show the ALTER TABLE script.

Read More
SQL SERVER - GROUP BY Columns with XMLPATH - Comma Delimit Multiple Rows

SQL SERVER – GROUP BY Columns with XMLPATH – Comma Delimit Multiple Rows

October 3, 2014
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server

How do you group by a column and comma delimit multiple rows of names into one value? It is a popular question, and I answer it with FOR XML PATH.

Read More
SQL SERVER - UPDATE FROM SELECT Statement with Condition

SQL SERVER – UPDATE FROM SELECT Statement with Condition

September 30, 2014
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Table Operation

An old college friend asked how to UPDATE one table from another with a condition. Here is his sample and the UPDATE FROM SELECT statement that solves it.

Read More
SQL SERVER - SSMS: Resource Locking and Object Execution Statistics Report

SQL SERVER – SSMS: Resource Locking and Object Execution Statistics Report

September 17, 2014
Pinal Dave
SQL Tips and Tricks
SQL Reports, SQL Scripts, SQL Server

How many times did a procedure run, and how much CPU and IO did it use? The SSMS Resource Locking and Object Execution Statistics reports answer exactly that.

Read More
Gouache painting: a small shop counter where a wrapped paper parcel has already been slid across to the far side, while a closed ledger and a resting pen wait on the near side; the parcel's wax seal is vermilion

Example of Delayed Durability: How Much Faster Are Commits?

September 8, 2014
Pinal Dave
SQL Performance
SQL Performance, SQL Scripts, SQL Transactions, Transaction Log

This example of delayed durability runs 50,000 small transactions on SQL Server 2025 four ways and compares time and log writes. It shows what the database setting and the commit option change, and what you risk.

Read More
SQL SERVER - How to Setup Delayed Durability for SQL Server 2014?

SQL SERVER – How to Setup Delayed Durability for SQL Server 2014?

September 7, 2014
Pinal Dave
SQL Performance
SQL Memory, SQL Scripts, SQL Server

How do you setup Delayed Durability in SQL Server 2014? Here are three methods, starting at the database level with ALTER DATABASE SET DELAYED_DURABILITY.

Read More
Gouache painting of nested wooden boxes, opened one inside another, the smallest holding a single vermilion bead.

JSON_CONTAINS in SQL Server 2025: Searching Inside JSON Arrays

August 31, 2014
Pinal Dave
SQL Tips and Tricks
JSON, SQL Function, SQL Scripts

JSON_CONTAINS checks whether a JSON document holds a value at a path, including inside an array. This post tests it on SQL Server 2025: the json data type it needs, numbers versus text, case, NULL results and the older OPENJSON way.

Read More
Previous 1 … 173 174 175 176 177 178 179 … 366 Next
  • Books
  • Testimonials
  • Privacy Policy

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