DBA Scrolls - SQL Stories from the Trenches

Welcome to my blog about SQL Server database administration! As a SQL DBA, I've worked with databases for many years and have learned a lot about best practices, common pitfalls, and new features. On this blog, I'll be sharing my insights, tips, and tricks related to SQL Server administration, performance tuning, data analysis, and more. Whether you're a beginner or an experienced SQL DBA, you'll find valuable information and practical solutions to real-world challenges. Join me on this journey

Per-Database CPU Usage in SQL Server

By Lince Sebastian يوليو 20, 2024 #performance #TSQL
Per-Database CPU Usage in SQL Server

As database administrators, it's crucial to monitor and analyze CPU usage across different databases in SQL Server. By understanding which databases consume the most CPU resources, we can better optimize performance…

Read Tutorial

View Database Mail Configuration in SQL Server with T-SQL

By Lince Sebastian مايو 05, 2024 #TSQL
View Database Mail Configuration in SQL Server with T-SQL

While the SQL Server Management Studio (SSMS) offers a graphical interface for configuring Database Mail, T-SQL provides detailed insights into the configuration through various system stored procedures and views. Here&…

Read Tutorial

Identifying and Troubleshooting Long-Running SQL Queries in SQL Server

By Lince Sebastian نوفمبر 12, 2023 #performance #qureystore #TSQL
Identifying and Troubleshooting Long-Running SQL Queries in SQL Server

Slow running queries can drag down application performance and degrade user experience. As a DBA, it's important to monitor and optimize long running SQL statements. In this post, I'll demonstrate how to find que…

Read Tutorial

Find a specific query in the Query Store?

By Lince Sebastian أكتوبر 29, 2023 #performance #qureystore #TSQL
Find a specific query in the Query Store?

The SQL Server Query Store is an incredibly useful feature for monitoring and troubleshooting query performance issues. One of the handiest aspects of the Query Store is the ability to easily retrieve execution plans an…

Read Tutorial

How to retrieve the Query Store ID of a Session ID in SQL Server?

By Lince Sebastian أكتوبر 29, 2023 #performance #qureystore #TSQL
How to retrieve the Query Store ID of a Session ID in SQL Server?

The Query Store is a feature in SQL Server that collects and stores information about queries that are executed. This information can be used to troubleshoot performance problems, identify queries that are causing probl…

Read Tutorial

How to persist SQL Agent job history in Azure SQL Managed Instance

By Lince Sebastian سبتمبر 17, 2023 #TSQL
How to persist SQL Agent job history in Azure SQL Managed Instance

Azure SQL Managed Instance provides a robust environment for running SQL Server workloads in the cloud. However, it does come with certain limitations, one of which revolves around the retention of SQL Agent job history…

Read Tutorial

SQL Server query to retrieve all permission details for users within a database

By Lince Sebastian أغسطس 25, 2023 #permissions #TSQL
SQL Server query to retrieve all permission details for users within a database

In the realm of database management, ensuring robust security measures is paramount. As a dedicated SQL enthusiast, I recently stumbled upon an incredibly useful SQL query on Stack Overflow. While I didn't create th…

Read Tutorial

How can I check the failover history of the nodes in Always On availability groups ?

By Lince Sebastian يوليو 25, 2023 #HA&DR #TSQL
How can I check the failover history of the nodes in Always On availability groups ?

SQL Server Availability Groups (AG) provide high availability and disaster recovery solutions for critical databases. Understanding the history of failovers in an AG is crucial for tracking changes in primary and second…

Read Tutorial

Streamline TSQL Result Delivery: Automate Emailing of TSQL Results in HTML Format using PowerShell - Any-TSQL Results to HTML EMail

By Lince Sebastian يوليو 22, 2023 #Powershell #TSQL
Streamline TSQL Result Delivery: Automate Emailing of TSQL Results in HTML Format using PowerShell - Any-TSQL Results to HTML EMail

In this blog post, we will explore a useful PowerShell script that allows you to execute TSQL queries and send the results via email. The script is versatile and can work with any type of TSQL query. It also provides op…

Read Tutorial

How to find tempdb file size in SQL server and Azure SQL Managed Instance (configured / initial / Current)

By Lince Sebastian يوليو 20, 2023 #performance #TSQL
How to find tempdb file size in SQL server and Azure SQL Managed Instance (configured / initial / Current)

In SQL Server, TempDB is a system database used to store temporary objects such as temporary tables, table variables, and other internal objects created during query processing. It is essential for managing sorting, gro…

Read Tutorial

Converting UTC to BST: A T-SQL Guide to forgot about Daylight Saving Time

By Lince Sebastian يوليو 09, 2023 #TSQL
Converting UTC to BST: A T-SQL Guide to forgot about Daylight Saving Time

We'll explore how to convert UTC (Coordinated Universal Time) to BST (British Summer Time) using T-SQL. Daylight Saving Time (DST) adjustments are crucial for handling time changes in regions that observe it. We'…

Read Tutorial
Older Posts →

Search

Tags / Labels

  • backup (2)
  • Blocking (1)
  • disk (1)
  • encryption (3)
  • HA&DR (1)
  • non labeled (2)
  • performance (11)
  • permissions (4)
  • Powershell (3)
  • qureystore (5)
  • Security (4)
  • SQL users (3)
  • TSQL (11)

Popular Tutorials

  • Powerful Connections: How to Connect to SQL Server Using PowerShell
  • How can I check the failover history of the nodes in Always On availability groups ?
  • How to Find Users and their AD groups in SQL Server - SQL Server DBA

SQL Server Access Audit: A Comprehensive Script - Azure SQL Compatible

byLince Sebastian•أكتوبر 21, 2024
  • أكتوبر 2024(1)
  • يوليو 2024(1)
  • يونيو 2024(2)
  • مايو 2024(1)
  • أبريل 2024(1)
  • نوفمبر 2023(1)
  • أكتوبر 2023(3)
  • سبتمبر 2023(2)
  • أغسطس 2023(1)
  • يوليو 2023(4)
  • يونيو 2023(1)
  • مايو 2023(1)
  • أبريل 2023(6)
  • مارس 2023(2)
  • فبراير 2023(1)
  • يناير 2023(1)

Main Tags

  • backup
  • Blocking
  • disk
  • encryption
  • HA&DR
  • non labeled
  • performance
  • permissions
  • Powershell
  • qureystore
  • Security
  • SQL users
  • TSQL

© DBA Scrolls - SQL Stories from the Trenches - SQL Stories from the Trenches. Built with modern Blogger layout.