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
One garden bed filled with individual grass plugs beside another filled with rolled turf

Which is Faster – INSERT INTO SELECT or SELECT INTO? – Interview Question of the Week #187

August 19, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL Performance, SQL Scripts, SQL Server

Which is faster, INSERT INTO SELECT or SELECT INTO? A client moving large data between tables asked me, and here is what we found when we tested both.

Read More
A wall with torn strips of old wallpaper still clinging, a red-handled scraper below

SQL SERVER – Unable to Remove Replication Publication – Could not Delete the Subscription at Subscriber ‘SubServer’ in Database ‘SubDB’

August 18, 2018
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Replication, SQL Scripts, SQL Server

On my broken replication lab, removing a publication failed with: Could not delete the subscription at Subscriber ‘SubServer’. Here is the command that fixed it.

Read More
Gouache painting of a giant vermilion pumpkin squeezed onto a small pantry shelf among little jars

Huge Transaction Log File in SQL Server: Find the Cause

August 17, 2018
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL DMV, SQL Scripts, Transaction Log

A huge transaction log file has a named reason in log_reuse_wait_desc. This post builds a small demo database, reads that reason, backs up the log and finds the open transaction that holds it. It ends with a one time shrink and a safe growth step.

Read More
Magnifying glass, document with red cross.

SQL SERVER – Error: 17300 – The Error is Printed in Terse Mode Because There was Error During Formatting

August 16, 2018
Pinal Dave
SQL Tips and Tricks
PowerShell, SQL Error Messages, SQL Scripts, SQL Server

SQL SERVER – Error: 17300 – The Error is Printed in Terse Mode Because There was Error During Formatting. Let us fix that in this blog.

Read More
Gouache painting of three bowls of seeds beside a mixing bowl with a vermilion wooden spoon

Random Password Procedure in SQL Server with CRYPT_GEN_RANDOM

August 15, 2018
Pinal Dave
SQL Tips and Tricks
SQL Password, SQL Random, SQL Scripts, SQL Server Security, SQL Stored Procedure

A random password procedure for SQL Server should use CRYPT_GEN_RANDOM, skip lookalike characters and guarantee every kind of character. This post builds one with a length and character switches, then tests 1,000 passwords. It also covers errors and safe handling.

Read More
Small red ribbons tied to pine trunks marking a path through a wood to a single picnic table in a clearing.

Decoding wait_resource: From a KEY or PAGE Lock to the Table

August 14, 2018
Pinal Dave
SQL Performance
SQL DMV, SQL Lock, SQL Server, SQL Wait Stats

Decode wait_resource for blocked requests, map KEY and PAGE locks to objects, and keep undocumented row-hash checks on test copies.

Read More
Gouache painting of a basket holding one vermilion pear beside a full crate of pears

SELECT COUNT Without FROM Returns 1, Not an Error

August 13, 2018
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server

A SELECT COUNT without FROM does not fail in T-SQL. It returns 1, because the table name after COUNT(*) becomes a column alias. This post shows the typo, the other silent mistakes that work the same way, and the habits that make them fail loudly.

Read More
Previous 1 … 202 203 204 205 206 207 208 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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