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
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
SQL SERVER - WMI Error 0x80041017 - Invalid Query Using WBEMTest

SQL SERVER – WMI Error 0x80041017 – Invalid Query Using WBEMTest

August 10, 2018
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server, WMI

Helping on a forum, I asked a user to test WMI with WBEMTest and it returned error 0x80041017, Invalid query. Here are the test steps and how to fix the error.

Read More
Previous 1 … 93 94 95 96 97 98 99 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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