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
Feb17

SQL SERVER – Find Current Location of Data and Log File of All the Database

Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, SQL Server Security, SQL System Table
46 Comments

A one line query on sys.master_files that shows the current data and log file location for all databases, handy when cleaning up old .mdf and .ldf files.

Continue Reading
Feb16

SQL SERVER – List All Server Wide Configurations Values

Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Stored Procedure, SQL System Table
8 Comments

I forgot the syntax to check the two digit year cutoff, so I listed all Server Wide Configurations with sys.configurations. A small script worth saving.

Continue Reading
Feb15

SQL SERVER – Reasons to Backup Master Database – Why Should Master Database Backedup

Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Backup and Restore, SQL Data Storage, SQL Server Security, SQL Utility
5 Comments

Why should you backup master database? It holds all logins, system configuration and the details SQL Server needs to reach every other database.

Continue Reading
Feb14

SQL SERVER – Restore Master Database – An Easy Solution

Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, SQL Server Security, SQL Utility
53 Comments

A two step easy way to restore master database: start SQL Server in single user mode, then restore from a full backup of master. No full backup, no restore.

Continue Reading
Feb13

SQL SERVER – Simple Example of Reading XML File Using T-SQL

Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL XML
94 Comments

A simple example of reading XML file content using T-SQL: load the XML into a variable and pull out elements and attributes with value() in a SELECT.

Continue Reading
Feb12

SQL SERVER – Simple Example of Creating XML File Using T-SQL

Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL XML
125 Comments

I always want to learn SQL Server and XML file. Let us go over a very simple example, today about how to create XML using SQL Server.

Continue Reading
Feb11

JSON_PATH_EXISTS: Distinguish Missing and Null Properties

Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts
No Comments

JSON_PATH_EXISTS tests path presence, including JSON null. Compare missing properties, empty arrays and SQL NULL on SQL Server 2022.

Continue Reading
Previous 1 … 720 721 722 723 724 725 726 … 846 Next

SQL Server slow? Let's fix it together in about four hours.

Pinal Dave

In my Comprehensive Database Performance Health Check, you share your screen, I guide you, and we fix your biggest performance troublemakers. No passwords. No remote access.

You keep every script, and the know-how to fix it yourself next time.

Want your whole team to learn it?

My Practical Workshop has no PowerPoint, just live demos. My AI Enablement Workshop shows your team where AI saves hours, and where it quietly costs them.

Over 400 customers have worked with me this way, and not one shared a password. See all consulting options.


Who We Are

Pinal Dave is an SQL Server Performance Tuning Expert and independent consultant with over 24 years of hands-on experience. He holds a Masters of Science degree and numerous database certifications.

Pinal has authored 19 books and 125 Pluralsight courses. To freely share his knowledge and help others build their expertise, Pinal has also written more than 5,800 database tech articles on his blog at https://blog.sqlauthority.com.

Pinal is also a CrossFit Level 1 Trainer (CF-L1) and CrossFit Level 2 Trainer (CF-L2).


Nupur Dave is a social media enthusiast and an independent consultant. She primarily focuses on the database domain, helping clients build short and long-term multi-channel campaigns to drive leads for their sales pipeline.


Shaivi Pinalkumar Dave is a book author and a women’s artistic gymnast.

  • Books
  • Testimonials
  • Privacy Policy

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