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
Seed clusters grow outward into a cumulative spiral

How to Generate Fibonacci Series for the First 1000 Values? – Interview Question of the Week #174

May 20, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL Function, SQL Scripts, SQL Server

How to generate Fibonacci series for the first 1000 values? Most answers online stop near 70 or 80 values because the numbers get too big. Here is mine.

Read More
Model dialog in sql server 2016 login properties.

SQL SERVER – SQL Server Cluster Resource Doesn’t Come Online Randomly

May 19, 2018
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL Server Cluster, SQL System Table, SQL Trace, System Database

A client’s SQL Server Cluster Resource sometimes failed to come online after a failover to another node. Here is what caused it and how we fixed it.

Read More
Gouache painting of a train siding with a long loaded flatcar blocking a waiting vermilion wagon

How an Open Transaction Uses Free Log Space

May 18, 2018
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, Transaction Log

An open transaction holds free log space hostage. This post runs one transaction in a SIMPLE recovery database and reads the log after the load and after the commit. It explains why the log grows before COMMIT, what ACTIVE_TRANSACTION means, and why a new FULL recovery database behaves like SIMPLE until its first full backup.

Read More
Gouache painting of dents in a hallway rug with muddy boot prints and a vermilion-handled magnifying glass

Find Who Dropped a Table by Reading the Transaction Log

May 17, 2018
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL Scripts, SQL Server, Transaction Log

To find who dropped a table, read the transaction log for the DROPOBJ transaction and look up the login behind its security ID. This post runs that search on a demo database, shows the default trace as a second source when the log has been truncated, and explains what to do when everyone shares one login.

Read More
A room key and a separate outer gate key show different access scopes.

SQL SERVER – Creating a Login and Database User Without Automatic Sysadmin Grants

May 16, 2018
Pinal Dave
SQL Tips and Tricks
SQL Login, SQL Scripts, SQL Server, SQL Server Security

To Create a Login and User, I separate the instance identity from database access. Database ownership and sysadmin membership have different scopes.

Read More
Gouache painting of a database beside a diagnostic checklist and tools

Recovery Pending State in SQL Server: Find Why Databases Go There at Random

May 15, 2018
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Log, Starting SQL

A Recovery Pending state means SQL Server could not finish opening a database, most often because it could not open a file. I reproduced two file errors on SQL Server 2025, show what each leaves in the error log, and explain how AUTO_CLOSE and antivirus scanning caused one client case.

Read More
SQL SERVER - FIX: Msg 22004 - The Log File is Not Using Unicode Format

SQL SERVER – FIX: Msg 22004 – The Log File is Not Using Unicode Format

May 14, 2018
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server, SQL Server Agent, Transaction Log

The SQL Server Agent log would not open in SSMS and showed Msg 22004, the log file is not using Unicode format. Here is the setting that fixed it.

Read More
Previous 1 … 215 216 217 218 219 220 221 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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