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
Each sample group is compared with its own local measuring jig.

SQL SERVER – How to Write Correlated Subquery?

December 21, 2018
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Table Operation

A Correlated Subquery references the outer query. I use a stock-item comparison after the earlier single-table aggregate lesson.

Read More
Individual vessels and a separate grouped tray sit beside distinct reference vessels.

SQL SERVER – Two Different Requirements for a Single Table Subquery

December 20, 2018
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server

A subquery can compare rows with an aggregate from the same table. A junior DBA asked about this over lunch.

Read More
Title card: Logical Log Files Cannot Be Fewer Than 2

SQL SERVER – Cannot Shrink Log File Because Total Number of Logical Log Files

December 19, 2018
Pinal Dave
SQL Tips and Tricks
Shrinking Database, SQL Error Messages, SQL Scripts, SQL Server, Transaction Log

Cannot shrink log file because the total number of logical log files cannot be fewer than 2. Here is what the message means.

Read More
SQL SERVER - Information Message: Cannot shrink file in database to xxxx pages as it only contains yyyy pages.

SQL SERVER – Information Message: Cannot shrink file in database to xxxx pages as it only contains yyyy pages.

December 18, 2018
Pinal Dave
SQL Tips and Tricks
Shrinking Database, SQL Error Messages, SQL Scripts, SQL Server

A reader hardcoded 1 GB in my log shrink script and got: Cannot shrink file in database to xxxx pages as it only contains yyyy pages. I explain why it appears.

Read More
SQL SERVER - Error 21028 : Replication Components are not Installed on This Server

SQL SERVER – Error 21028 : Replication Components are not Installed on This Server

December 17, 2018
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Replication, SQL Server, SQL Server Management Studio

After I set up AlwaysOn for a client, configuring replication failed: Replication components are not installed on this server. Here is how to fix error 21028.

Read More
SQL SERVER - FIX: Msg 15190 - There are still remote logins or linked logins for the server

SQL SERVER – FIX: Msg 15190 – There are still remote logins or linked logins for the server

December 15, 2018
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Login, SQL Scripts, SQL Server, SQL Server Security

Dropping a linked server with sp_dropserver failed with Msg 15190: There are still remote logins or linked logins for the server. Here is how to clear them.

Read More
Title card: Msg 1813: Could Not Open New Database

SQL SERVER – Fix : Error Msg 1813, Level 16, State 2, Line 1 Could not open new database databasename. CREATE DATABASE is aborted

December 14, 2018
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Log, SQL Scripts, SQL Server

My 2007 post on Msg 1813, Could not open new database, is still popular. SQL Server expert Jeremy Roe sent an updated script for newer versions of SQL Server.

Read More
Previous 1 … 92 93 94 95 96 97 98 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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