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
Gouache painting of identical stepping stones stretching into the distance from one small vermilion marker stone.

Unix Timestamp in SQL Server: Converting Seconds and Milliseconds Both Ways

October 20, 2021
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts

A Unix Timestamp counts seconds or milliseconds since 1 January 1970 UTC. This post converts it to datetime2 and back on SQL Server 2025, shows why datetime2(3) keeps the milliseconds, how to pass the year 2038 limit and how time zones and dates before 1970 behave.

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
A harbor entrance where a line of vermilion buoys steers small boats away from the main quay.

Read-Only Routing for Availability Group Replicas

October 18, 2021
Pinal Dave
SQL Tips and Tricks
AlwaysOn, DBA, SQL Connection, SQL High Availability

Configure availability group read-only routing, listener connections, replica URLs, balanced lists, and verification after failover.

Read More
Gouache painting of a large stuck barn door with a small vermilion side door ajar

Max Server Memory Set Too Low: Fix It Through the DAC

October 15, 2021
Pinal Dave
SQL Tips and Tricks
SQL Connection, SQL Memory, SQL Server Security

Max server memory set too low can stop SQL Server from answering normal connections. This post shows how to connect through the Dedicated Administrator Connection, raise the value with sp_configure and start the service when it will not start.

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 … 34 35 36 37 38 39 40 … 590 Next
  • Books
  • Testimonials
  • Privacy Policy

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