Skip to content

DBASco

Database & System Engineering Blog

  • Home
  • SQL Server
    • MSSQL Scripts
  • PowerShell
    • PowerShell Scripts
  • DBA Cheat Sheet
  • Other Posts
  • About
Adding a Filegroup in SQL Server
SQL ServerTagged SQL Server CDC, SQL Server Database Files, SQL Server FilegroupsLeave a Comment on Adding a Filegroup in SQL Server

Adding a Filegroup in SQL Server

January 21, 2024January 21, 2024

In this post, we’ll demonstrate the process of adding a new filegroup to a database in SQL Server. While many databases function efficiently with a single data/log file, there are scenarios where adding a filegroup proves beneficial. Filegroups, as outlined […]

Why Use WHERE 1=2 in SQL
SQL ServerTagged MSSQL DBA Tips, SQL QueriesLeave a Comment on Why Use WHERE 1=2 in SQL

Why Use WHERE 1=2 in SQL

January 21, 2024January 24, 2024

In my last post, we discussed the usefulness of WHERE 1=1 in SQL queries. This time, let’s explore the purpose behind using WHERE 1=2 – a statement that evaluates to false. Similar to WHERE 1=1, this technique can be applied […]

WHERE 1=1 in SQL Queries
SQL ServerTagged MSSQL DBA Tips, SQL Queries1 Comment on WHERE 1=1 in SQL Queries

WHERE 1=1 in SQL Queries

January 20, 2024January 24, 2024

When delving into SQL queries, you may come across the puzzling WHERE clause condition: WHERE 1=1. This leaves many wondering, why use it, and what purpose does it serve? Understanding WHERE 1=1 The condition WHERE 1=1 essentially translates to WHERE […]

SQL Server: Deleting Rows in Batches
SQL ServerLeave a Comment on SQL Server: Deleting Rows in Batches

SQL Server: Deleting Rows in Batches

January 18, 2024January 20, 2024

Deleting a large amount of data from a SQL Server table can be a resource-intensive task. Whether it’s for routine maintenance or data cleanup, managing the deletion process efficiently becomes crucial for maintaining database performance. In this blog post, we’ll […]

SQL Server Script: Kill All User SPIDs
SQL ServerTagged MSSQL DBA Tips, MSSQL Scripts1 Comment on SQL Server Script: Kill All User SPIDs

SQL Server Script: Kill All User SPIDs

January 17, 2024January 28, 2024

Database administrators often encounter scenarios where they need to terminate all user sessions or processes (SPIDs) in a specific database. This may be necessary during maintenance tasks, troubleshooting (dropping a database), or other critical database operations. In this blog post, […]

Create a Test Database in SQL Server
SQL ServerTagged SQL Server Database FilesLeave a Comment on Create a Test Database in SQL Server

Create a Test Database in SQL Server

January 13, 2024February 19, 2024

As a SQL Server DBA and blogger, creating a test database with data often needed for preparing tests and demos. You might also need this for testing a SQL Server feature or script before rolling out to Production. The SQL […]

Posts pagination

Previous 1 … 5 6 7 … 11 Next

Popular Posts

DBASco (SQL DBA Blog) - 2024