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 backup size tool.

SQL SERVER – Finding Compression Ratio of Backup

October 27, 2018
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL DMV, SQL Scripts, SQL Server

Is there a way to know the compression ratio of backup files in SQL Server? Here is a quick script on msdb backupset that compares backup size with compressed size.

Read More
SQL SERVER - Reporting Services Not Starting After Maintenance Window

SQL SERVER – Reporting Services Not Starting After Maintenance Window

October 25, 2018
Pinal Dave
SQL Tips and Tricks
Reporting Services, SQL Error Messages, SQL Reports, SQL Server

Reporting Services not starting after maintenance? On my lab server every SQL service came back except SSRS. Here is what the log showed.

Read More
A fitted key inventory is inspected within one room while distant doors remain outside its scope.

SQL SERVER – How to Get List of SQL Server Instances Installed on a Machine Via T-SQL?

October 24, 2018
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server

A registry query lists SQL Server Instances recorded on the Windows host. A customer wanted a T-SQL-only method.

Read More
Gouache painting of a vermilion cart carrying three small stacked wooden tables

Drop Multiple Tables with One DROP TABLE Statement

October 23, 2018
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts, SQL Table Operation

To drop multiple tables in SQL Server, list them in one DROP TABLE statement, referencing tables first. This post tests the order rule on a parent and child table and shows what happens after an error. It also covers IF EXISTS, drops by name pattern and temporary tables.

Read More
Gouache painting of two water pumps with watering cans waiting, one spout clamped in vermilion

Full-Text Index Blocking Redo on an Always On Secondary

October 20, 2018
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL DMV, SQL High Availability, SQL Lock, SQL Scripts

A full-text index can block the redo thread of a readable Always On secondary. This post shows the three clues to read in sys.dm_exec_requests, how to find the internal table and how to check change tracking. It ends with the fix: manual tracking and a scheduled population.

Read More
Gouache painting of an old brass spyglass beside new binoculars in vermilion on a stone ledge

DBCC PAGE Alternative: Read Page Headers with T-SQL

October 19, 2018
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server 2019, SQL Server Architecture, SQL Server DBCC

The best DBCC PAGE alternative is the function sys.dm_db_page_info. This post builds a demo table, lists all of its pages with the allocation view, and compares one page with DBCC PAGE. It also explains the two modes and the page wait use.

Read More
Gouache painting of a worker checking a blocked bridge between two database towers

Always On Listener Creation Fails: Attempt to Locate a Writable Domain Controller Failed

October 18, 2018
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL Domain Controller, SQL Error Messages, SQL Server Cluster

Always On listener creation can fail because the cluster cannot finish its directory work. In a 2018 client case, the same failure hit three clusters. This post shows how to read the cluster event, check DNS and directory permissions, prestage the listener object and verify the result.

Read More
Previous 1 … 98 99 100 101 102 103 104 … 572 Next
  • Books
  • Testimonials
  • Privacy Policy

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