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
errorfix

SQL SERVER – Fix Error – Cannot execute as the database principal because the principal “dbo” does not exist

October 21, 2021
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Login, SQL Scripts, SQL Server, SQL Server Security

One of my clients recently sent me an email with the following error. The error was visible in the error log and was about the database principal. 

Read More
A usable cabinet copy stands beside a protected original and a separate recovery key.

SQL SERVER – Source Database in Restoring State

October 19, 2021
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, SQL Server, SQL Server Management Studio

A Source Database in Restoring State can follow a tail-log backup WITH NORECOVERY. A customer encountered this while restoring another copy.

Read More
Gouache painting of a repainted vermilion front door with an old key on the mat that no longer fits

distributor_admin Login: Why Renaming It Is a Bad Idea

October 14, 2021
Pinal Dave
SQL Tips and Tricks
SQL Replication, SQL Server, SQL Server Security

Do not rename the distributor_admin login on a server that uses replication. This post shows how to check whether replication uses it, and a loopback demo with a throwaway login that shows what a rename breaks.

Read More
A broad fitting catalog remains distinct from a selected work tray and retained records.

SQL SERVER – List of Trace Events

October 13, 2021
Pinal Dave
SQL Performance
SQL Extended Events, SQL Scripts, SQL Server, SQL Trace

sys.trace_events lists available SQL trace events rather than only default-trace collection. Readers asked after my creation-date article.

Read More
Gouache painting: a small glass jar filled to its rim with dry beans beside a large, mostly empty burlap sack; the jar has a vermilion lid

SQL Express Size Limits for SQL Server 2025 and Earlier Versions

October 12, 2021
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL Server Express

SQL Server Express Size limits depend on the engine release. The 2021 article 10 GB answer does not cover every current version.

Read More
Gouache painting of a cut tree stump with rings and a vermilion pin at the center

When a Table Was Created: Find It With Metadata and Traces

October 11, 2021
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Extended Events, SQL Scripts, SQL Server, SQL Trace

To find when a table was created, read create_date from sys.tables. This post adds the default trace and an Extended Events session for the question of who created it, and tests what a rename or an ALTER does to the date.

Read More
A white goose standing among lettuces as a hand closes the garden gate that was propped open behind it.

NOCHECK CONSTRAINT: Loading Data and Trusting Foreign Keys Again

October 8, 2021
Pinal Dave
SQL Tips and Tricks
ETL, SQL Constraint and Keys, SQL Scripts, SQL Server

Use NOCHECK CONSTRAINT carefully, distinguish enabled from trusted foreign keys, validate old rows, and restore optimizer assumptions.

Read More
Previous 1 … 9 10 11 12 13 14 15 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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