Close
  • Blog
  • About
×
×
  • Blog
  • About
Menu & Search
MSSQL DBA Blog
SQL Server

SQL Server

get sql agent jobs
July 21, 2022
SQL Server
List All SQL Agent Jobs on a SQL Server Instance

This post contains a SQL script that will return a list of all SQL Server Agent Jobs on a Microsoft SQL Server instance.

Read More
SQL Server Restore Database
July 19, 2022
SQL Server
How to Restore a Database in SQL Server

Restoring a database in SQL Server is a straightforward task, and one that SQL Database Administrators have to perform thousands of times throughout their career.

Read More
sql server 2022 release
May 29, 2022
SQL Server
What’s New in the SQL Server 2022 Install

SQL Server 2022 was announced last week at the Microsoft Build event, which is an annual summit aimed at those of us who are enthusiastic about Microsoft software.

Read More
May 5, 2022
MySQL
Postgres
RedShift
Why Use WHERE 1=2 in SQL

Some time ago I wrote a blog post on why use WHERE 1=1 in SQL. This time it’s why use WHERE 1=2, but really this can be WHERE 1=9 or anything that isn’t a 1, we just want the false statement.

Read More
December 12, 2020
SQL Server
Get All Database Sizes & Free Space Info In SQL Server

Tracking database file sizes and free space within data and log files is an important part of monitoring SQL Server. This information, along with other metrics such as growth events, can help you to better predict and plan for future disk space provisioning needs.

Read More
November 30, 2020
SQL Server
Find String in Tables in SQL Server

Finding strings in SQL is usually done within a WHERE clause – you’re searching for rows in a table containing your condition which can of course include a string.

Read More
November 27, 2020
SQL Server
Show Only the Domain of an Email Address in SQL Server

When performing data analysis of email data in SQL, there’s often a need to show only the domain of an email address.

Read More
SQL Use Database Example
November 25, 2020
SQL Server
USE Command in SQL Server

USE [database] in SQL Server is a way to change the context to a specific database when you are running a query in Microsoft SQL Server.

Read More
November 23, 2020
SQL Server
Change Default Database in SQL Server

When you log into SQL Server using SQL Server Management Studio (SSMS), opening a new query window will automatically scope you within the default database set when your user was created.

Read More
Disk Usage by Top Tables SQL Server
October 4, 2020
SQL Server
Disk Usage by Top Tables Report in SQL Server

The Disk Usage by Top Tables Report in SQL Server is a quick way to get the sizes of all tables within a database.

Read More
1 2 3 4 5 … 8
Peter Whyte DBA

Peter Whyte

Blog Menu

  • Homepage
  • MSSQL DBA Blog
  • SSMS Tips
  • SQL Notes & Links
  • DBA Blog Archives
  • WSL Windows Tips
  • Projects

Categories

  • AWS (5)
  • Linux (34)
  • MySQL (5)
  • Postgres (7)
  • PowerShell (48)
  • RedShift (7)
  • SQL Server (78)
  • Windows (64)
  • WordPress (2)

Tags

Active Directory (AD) (4) AWS CLI (3) CDC (2) Certificates & Encryption (3) Change Data Capture (2) CSV Files (4) Database Admin (54) Database Backups (10) Data Types (2) Deleting Data (2) Error Messages (4) Featured (4) Git (11) Git Commands (4) Git Log (3) Installing SQL Server (10) Linked Servers (3) Linux Admin (2) Measuring Databases (9) MSSQL SPIDs (3) NetFirewallProfile (3) New-Item PowerShell (2) PowerShell Create Folder (2) PowerShell Delete Files (2) PowerShell ForEach (2) PowerShell Tips (20) PowerShell Version (2) Restoring Databases (7) SQL Server Agent (4) SQL Server ETL (2) SQL Server Management Studio (SSMS) (14) SQL Server Processes (6) SQL Server Scripts (3) SQL Tips (19) SSH (2) SSMS Tips (9) Temp DB (2) Windows Admin (21) Windows Firewall (4) WordPress Tutorials (2) WSL (22) WSL1 (4) WSL2 (4) WSL Ubuntu (6) WSL Version (4)