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
Gouache painting: a tray of freshly glazed clay cups waiting on a drying rack beside a kiln, one cup with a vermilion glaze, the rest unglazed

Dirty Pages in Memory: Count Them Before and After CHECKPOINT

April 20, 2015
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Memory, SQL Scripts, SQL Server Architecture

Dirty pages in memory are changed data pages that SQL Server has not yet written to disk. This post counts them with sys.dm_os_buffer_descriptors on SQL Server 2025, before and after CHECKPOINT, and explains why the same script can show nothing on newer servers.

Read More
SQL SERVER – Create Login with SID – Way to Synchronize Logins on Secondary Server

SQL SERVER – Create Login with SID – Way to Synchronize Logins on Secondary Server

April 18, 2015
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Security

Create login with SID to keep SQL logins in sync on a secondary server, so users connect after log shipping, AlwaysOn or mirroring failover.

Read More
SQL SERVER - Walking the Table Hierarchy in Microsoft SQL Server Database - Notes from the Field #076

SQL SERVER – Walking the Table Hierarchy in Microsoft SQL Server Database – Notes from the Field #076

April 16, 2015
Pinal Dave
SQL Tips and Tricks
Notes from the Field, SQL Function, SQL Scripts

Kevin Hazzard shows how to walk the table hierarchy in a SQL Server database using the catalog, so you know the right order to load or clear tables.

Read More
SQL SERVER - Finding What Policies Are Enabled on Our Databases

SQL SERVER – Finding What Policies Are Enabled on Our Databases

April 15, 2015
Pinal Dave
SQL Tips and Tricks
Policy Management

A reader asked how to know which policy is enabled on a server. I explain how the policy engine uses target sets, then query what policies are enabled.

Read More
SQL SERVER - Script - Removing Multiple Databases from Log Shipping

SQL SERVER – Script – Removing Multiple Databases from Log Shipping

April 14, 2015
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore

Removing multiple databases from log shipping in SSMS takes many clicks per database. Here is a script that calls the log shipping stored procedures instead.

Read More
SQL SERVER - Is XP_CMDSHELL Enabled on the Server?

SQL SERVER – Is XP_CMDSHELL Enabled on the Server?

April 13, 2015
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Stored Procedure

Is XP_CMDSHELL enabled on your server? I recommend avoiding it for security. Here are two ways to check and turn it off, starting with T-SQL.

Read More
SQL SERVER - CONCAT function and NULL values

SQL SERVER – CONCAT function and NULL values

April 11, 2015
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL String

The CONCAT function and NULL values: CONCAT in SQL Server 2012 simply ignores NULL, while the + operator returns NULL. Here is a simple example.

Read More
Previous 1 … 238 239 240 241 242 243 244 … 572 Next
  • Books
  • Testimonials
  • Privacy Policy

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