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
Stepping stones crossing a stream, one missing near the far bank leaving a gap too wide to step across.

Backup Retention: How Long to Keep What

May 6, 2013
Pinal Dave
SQL Tips and Tricks
Best Practices, DBA, SQL Backup and Restore, Transaction Log

Backup retention should preserve restore chains while meeting recovery, legal, and storage needs across full, differential, and log backups.

Read More
SQL SERVER - sys.dm_xe_map_values - Reasons for Statement Recompilation

SQL SERVER – sys.dm_xe_map_values – Reasons for Statement Recompilation

May 5, 2013
Pinal Dave
SQL Tips and Tricks
SQL DMV

What are all the reasons a statement recompiles? I found the full list with the DMV sys.dm_xe_map_values, handy when you read a Profiler or Extended Events trace.

Read More
Two hands set a landscape painting into a new wooden frame, the old frame leaning empty.

Adding IDENTITY to an Existing Column With ALTER TABLE SWITCH

May 4, 2013
Pinal Dave
SQL Tips and Tricks
SQL Identity, SQL Server, SQL Table Operation, Table Partitioning

Add IDENTITY to an existing column with an empty matching table, ALTER TABLE SWITCH, a reseed, and full dependency checks.

Read More
SQL SERVER - DELETE From SELECT Statement - Using JOIN in DELETE Statement - Multiple Tables in DELETE Statement

SQL SERVER – DELETE From SELECT Statement – Using JOIN in DELETE Statement – Multiple Tables in DELETE Statement

May 3, 2013
Pinal Dave
SQL Tips and Tricks
SQL Joins

After my UPDATE from SELECT post, many readers asked about using JOIN in DELETE statement. It is possible, and I show how with multiple tables.

Read More
A needle threader drawing one strand through one eye beside covered needles

UNMASK on One Column: Granting Unmasking in SQL Server 2022

May 2, 2013
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL Server 2022, SQL Server Security

Support needs phone numbers but not salaries. Here is how to unmask one column, and what that permission does not do.

Read More
A hand raising a single vermilion pennant on a flagpole above a harbor full of moored boats.

Adding a NOT NULL Column With a Default to a Big Table

May 1, 2013
Pinal Dave
SQL Tips and Tricks
DBA, SQL Column, SQL Constraint and Keys, SQL Server, SQL Table Operation

Add a NOT NULL column with a default safely, distinguish metadata changes from row updates, and plan a staged Standard edition rollout.

Read More
SQL SERVER - UPDATE From SELECT Statement - Using JOIN in UPDATE Statement - Multiple Tables in Update Statement

SQL SERVER – UPDATE From SELECT Statement – Using JOIN in UPDATE Statement – Multiple Tables in Update Statement

April 30, 2013
Pinal Dave
SQL Tips and Tricks
SQL Joins

A developer wrote a cursor because he did not know how to UPDATE from SELECT. I show how to use JOIN and multiple tables in an UPDATE statement.

Read More
Previous 1 … 326 327 328 329 330 331 332 … 572 Next
  • Books
  • Testimonials
  • Privacy Policy

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