Skip to content
SQL Nuggets
Menu
  • Home
  • Blog
  • Speaking
  • Presentations
  • Downloads
  • About

Category: SQL Scripts

Home » SQL Scripts
Security / SQL Scripts

SQL Scripts: List Databases A Login Can Access

When you are managing your SQL Server database permissions through Active Directory Groups (which you should be!), it can sometimes be difficult to know just which databases a user actually …

SQL Scripts

SQL Scripts: Find Queries That Have Missing Index Requests

In a previous article, I went over how SQL Server will recommend an index that it believes will help a query run faster, and I showed how to find missing …

Indexes / SQL Scripts

SQL Scripts: How To Find Missing Indexes

One of the really cool things that SQL Server does is keep up with index statistics behind the scenes.  It knows how an index has been used, how often it …

Indexes / SQL Scripts / System Views

SQL Scripts: How To Find Filtered Indexes

Filtered indexes are one of those neat little SQL Server features that a lot of people don’t seem to know about, or if they do they don’t use them very …

DB Engine / SQL Scripts

SQL Scripts: How To Find A Database’s Compatibility Level

One thing that a lot of DBAs, especially Accidental DBAs such as myself, don’t seem to realize is that just because a database is sitting on a specific version of …

Backups / Corruption / Errors / SQL Scripts

SQL Scripts: How To Make Sure Your Backup Is Valid

I recently had a case where I needed to download a database backup to my laptop.  It usually takes about 12 hours for this particular backup to copy down, so …

Indexes / SQL Scripts

Index Basics: Find Tables That Do Not Have A Clustered Index

In a previous Index Basics post we went over the importance of having a Clustered Index on your tables, and we learned that SQL Server will automatically create a Clustered …

Security / SQL Scripts

SQL Scripts: How To Change The Owner Of A Database

Sometimes it becomes necessary to change the owner of a database.  When a database is first created, SQL Server likes to set the owner of that database to the login …

Security / SQL Scripts

SQL Scripts: How To Check Logins And Permissions

Security and permissions are a big part of a DBA’s job, and being able to find out things such as who has elevated login permissions, or when the last time …

SQL Scripts

SQL Scripts: How To Find Data And Log File Information

As a DBA, one of the things I routinely need to check is how much space is available in my database data and log files.  In this post of my ongoing SQL …

Indexes / SQL Scripts / System Views

SQL Scripts: How To Find Index Usage

This post is part of an ongoing SQL Scripts series, in which I list useful queries that I use in my day to day database administration. If you are interested in code …

Indexes / SQL Scripts / System Views

SQL Scripts: How To Find Index Fragmentation

This is the first post in an ongoing SQL Scripts series, in which I list useful queries that I use in my day to day database administration. What Is Index Fragmentation? …

Search

2020 IDERA ACE
MSCE: Data Platform

SUBSCRIBE VIA RSS

RSS feed RSS - Posts

Subscribe via Email

Receive notifications of new posts by email.

Categories

  • Availability Groups
  • Azure
  • Backups
  • Career
  • Conferences
  • Configurations
  • Corruption
  • DB Engine
  • Errors
  • Extended Events
  • Indexes
  • Management
  • MongoDB
  • Monitoring
  • Open Source Projects
  • Performance Tuning
  • PowerShell
  • Security
  • SQL Agent
  • SQL Scripts
  • SSIS
  • System Views
  • T-SQL
  • Tools

Recent Posts

  • The Power Of Proper Indexing
  • Yikes! Cannot recover the master database!
  • PowerShell: Compare Users’ AD Groups
  • Slides From My March 17th 2021 Geek Sync
  • Upcoming IDERA Geek Sync – March 17th, 2021

Top Posts

  • SQL Scripts: How To Find Missing Indexes
  • SQL Scripts: How To Find Index Usage
  • Using PowerShell To List Folders And Sizes
  • Checking The Status Of Email Sent From SQL Server
  • SQL Scripts: How To Find A Database’s Compatibility Level

Tags

Automation Azure Migration Backups Bad T-SQL Client Tools Clustered Indexes Database Mail Database Maintenance Data Files Data Storage dbatools DBCC CheckDB Encryption Execution Plans Express Edition Getting Started Index Basics Internals Log Files Music City Data Musings NOLOCK Nonclustered Indexes NoSQL Performance Permissions Presentations Quickies Server Administration Speaking SQL Agent SQL Index Insight SQL Metrics Pack SQL Permissions Manager SQL Saturday SQL Sentry SQL Server 2008 R2 SSMS Storing Passwords System Procedures Top Developer Tips Trace Flags Training Transaction Isolation Levels Visual Studio
Copyright © 2025 SQL Nuggets – OnePress theme by FameThemes
This website uses cookies to improve your experience. To find out more see our Privacy & Cookies Policy. Accept
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT