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
A bookbinder's press compares a thick paper stack with a compact one

How to Estimate Space Saved by Data Compression in SQL Server? – Interview Question of the Week #167

April 1, 2018
Pinal Dave
SQL Interview Questions and Answers
Compression, SQL Scripts, SQL Server, SQL Stored Procedure

How to estimate space saved by data compression in SQL Server? Use the built-in sp_estimate_data_compression_savings procedure. Here is a quick example.

Read More
Gouache painting of a tall wooden spool wound with cream thread, one short stretch of the thread tied in a vermilion knot

Backup Detected Log Corruption: Context Is Bad Middle Sector

March 31, 2018
Pinal Dave
SQL Tips and Tricks
Database Corruption, SQL Backup and Restore, SQL Error Messages, Transaction Log, VLF

Backup detected log corruption in a client’s database, and every full backup failed at exactly 60 percent. Instead of rebuilding the log, we checked the VLFs and found a log waiting on REPLICATION. Removing the leftover replication fixed the backup.

Read More
A new goldfish in a bag floating in a fishbowl to settle before release, a red net on the rim

SQL SERVER – Mirroring Error 1456 – The ALTER DATABASE Command Could not be Sent to the Remote Server Instance

March 30, 2018
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL Error Messages, SQL High Availability, SQL Mirroring, SQL Server

Adding a new witness server after a disaster failed with database mirroring error 1456. Here is one possible cause and what to check.

Read More
Colored axle collars being exchanged while cotter pins and chains stay attached

Renaming a Table With Almost No Downtime Using sp_rename

March 29, 2018
Pinal Dave
SQL Tips and Tricks
SQL System Table, SQL Table Operation, Table Partitioning, Temp Table

A rename swaps names in a blink, yet the foreign key and permissions stay with the old table. Here is a short demo and a safer swap.

Read More
A hand holding an inspection lamp to the engine of a vintage motorcycle on its stand in a garage.

Collecting Server Hardware Facts Before a Tuning Session

March 28, 2018
Pinal Dave
SQL Performance
Hardware, SQL CPU, SQL DMV, SQL Memory, SQL Server

Capture server hardware facts from SQL Server views, keep an inventory, and distinguish visible resources from workload sizing evidence.

Read More
MySQL - Connection Error - [MySQL][ODBC 5.3(w) Driver]Host 'IP' is Not Allowed to Connect to this MySQL Server

MySQL – Connection Error – [MySQL][ODBC 5.3(w) Driver]Host ‘IP’ is Not Allowed to Connect to this MySQL Server

March 27, 2018
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Connection, SQL Error Messages, SQL Scripts

Setting up a linked server to MySQL, the ODBC test failed: Host ‘IP’ is not allowed to connect to this MySQL server. Here is how I fixed it.

Read More
SQL SERVER - AlwaysOn Automatic Seeding - Database Stuck in Restoring State

SQL SERVER – AlwaysOn Automatic Seeding – Database Stuck in Restoring State

March 26, 2018
Pinal Dave
SQL Tips and Tricks
AlwaysOn, SQL Backup and Restore, SQL Error Messages, SQL High Availability, SQL Scripts, SQL Server

A client used AlwaysOn automatic seeding for a huge database, but it stayed in Restoring state on the secondary. Here is the reason we found.

Read More
Previous 1 … 222 223 224 225 226 227 228 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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