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
SQL Server query window.

SQL SERVER – Learning DATEDIFF_BIG Function in SQL Server 2016

August 23, 2017
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Server

DATEDIFF returns INT and overflows with Msg 535 on large ranges. SQL Server 2016 adds DATEDIFF_BIG, which returns BIGINT. Here is a simple example.

Read More
A hand passing a cut rose stem with one spotted leaf and a pouch of soil across a garden gate

Asking a SQL Question That Gets Answered: The Reproducible Script

August 22, 2017
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Scripts, SQL Server, Starting SQL

Write a reproducible script with minimal tables, synthetic rows, the failing query, expected results, and the exact SQL Server version.

Read More
An open workshop door exposes its latch linkage beside an inspection lens.

SQL Server Management Studio – New Feature – Object Explorer Query Tracking

August 21, 2017
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Management Studio

Object Explorer Query Tracking exposed SSMS queries while expanding nodes in the historical release. I used its Output window for investigation.

Read More
A steel patch plate bolted over a pipe, its new bolts painted red

SQL SERVER – Cluster Patching: The RPC Server is Too Busy to Complete This Operation

August 18, 2017
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL Server Cluster

A cluster patch failed with The RPC server is too busy. The real cause was a stopped Remote Registry service on the other node, and why it was off.

Read More
A small library reading room with separate book towers outside linked by covered bridges, a red book crossing one

Azure SQL Hyperscale: When the Database Outgrows One Server

August 17, 2017
Pinal Dave
SQL Tips and Tricks
Cloud Computing, SQL Azure, SQL Server

Evaluate Hyperscale by separating compute and storage needs, testing read replicas, and checking migration, recovery, and current limits.

Read More
Gouache painting of a detective's hat and magnifying glass beside two trunks, the swollen one with a vermilion strap

Database File Size Shrinks by Itself? Check Auto Shrink

August 15, 2017
Pinal Dave
SQL Tips and Tricks
Shrinking Database, SQL Data Storage, SQL Scripts, SQL Server Configuration

When a database file keeps getting smaller after you set its size, check Auto Shrink first. This post shows why a size you set later isn’t protected, then gives three checks: the database flag, jobs that shrink, and the default trace. It ends with the fix and the reason shrinking costs more than it saves.

Read More
SQL SERVER - SQL Agent Not Starting. The EventLog Service has Not Been Started

SQL SERVER – SQL Agent Not Starting. The EventLog Service has Not Been Started

August 14, 2017
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Log, SQL Server, SQL Server Agent

After a server hardening script, a client’s SQL Agent would not start because the Eventlog Service had not been started. Here is how we traced and fixed it.

Read More
Previous 1 … 143 144 145 146 147 148 149 … 571 Next
  • Books
  • Testimonials
  • Privacy Policy

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