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 compact folded fitting is compared with a larger assembly beside a constrained guide channel.

SQL SERVER – Puzzle – Shortest Code to Produce the Number 1000000000 (One Billion)

October 3, 2017
Pinal Dave
SQL Puzzle
SQL Function, SQL Scripts, SQL Server

This shortest code puzzle asks for 1000000000 without writing that literal or using arithmetic operators. The earlier zero puzzle brought roughly 700 valid answers.

Read More
Gouache painting of a wooden front door with a round brass doorbell button held pressed by a strip of vermilion tape, potted plants on the step

Error 0x80040E4D: SaveToSQLServer Fails With Login Failed for sa

October 2, 2017
Pinal Dave
SQL Tips and Tricks
Maintenance Plan, SQL Connection, SQL Error Messages, SQL Login, SQL Password

Error 0x80040E4D stopped a client from saving a maintenance plan, with Login failed for user sa at the end of the message. The sa login was locked out by another maintenance plan that still used an old password. Windows authentication worked in the meantime.

Read More
A strong rope holds its weight while a weak rope has broken under the same test

How to Enforce Password Policy of Windows to SQL Server? – Interview Question of the Week #142

October 1, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Login, SQL Scripts, SQL Server, SQL Server Security

SQL Server logins follow Windows password rules by default. If a login has it turned off, here is a simple script to Enforce Password Policy again.

Read More
Backups & Compression.

SQL SERVER – How to Enable Backup Compression On by Default

September 30, 2017
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, SQL Server

Tired of typing WITH COMPRESSION on every backup? Here is how to Enable Backup Compression on by default for the whole SQL Server instance.

Read More
Scarf fringe with both tied and untied threads visible

Building a Data Dictionary Query From Extended Properties

September 29, 2017
Pinal Dave
SQL Tips and Tricks
Data Warehousing, Master Data Services, SQL Data Storage, SQL Extended Events

A plain join quietly hides every column nobody described. See the LEFT JOIN that keeps them, and turn the gaps into a to-do list.

Read More
Vacated clay recesses retain small traces beside a cleanup brush and an intact tray of finished tiles.

SQL SERVER – What Are Ghost Records and How to Clean Them Up?

September 28, 2017
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, SQL Server

Ghost Records are logically deleted index records waiting for physical cleanup. I investigate their context before recommending an intervention.

Read More
A terraced vineyard on a hillside, flat steps of different widths roughly following the slope

Querying a Histogram With sys.dm_db_stats_histogram Instead of DBCC

September 27, 2017
Pinal Dave
SQL Performance
SQL DMV, SQL Index, SQL Server, SQL Statistics

Query sys.dm_db_stats_histogram to inspect statistics steps, compare stored estimates with data, and identify values beyond the last step.

Read More
Previous 1 … 248 249 250 251 252 253 254 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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