
Tech Blog – Scripts
SQL Server
Diagnostic
# Get Best Practise Info.
# Get Disk Space Info.
# Get Hardware Info.
# Get Instance Level Config.
# Get Database Level Configs (Recovery, Log & Common Options).
# Get Last Backup Times.
# Get Sizes Of All Databases.
# Get Table Sizes (Database Scoped).
# Get CPU Utilisation By Database.
# Get I/O Utilisation By Database.
# Get Top Avg. Elapsed Query Time On Instance.
# Get Most Frequently Executed Queries On Database.
# Get SQL Agent & Category Info.
# Get Database File Path & Growth Info.
# Get Fragmentation & Forward Record Counts.
# Get Database Growth Events.
# Get VLF Counts For All Databases.
# Get Services Info.
Operational
# Heal Logins.
# Kill SPIDs.
# Kill All User SPIDs.
# BCP with XP_CmdShell.
# Add Primary Key Constraint.
# Move TempDB Files.
# Batch Deletions.
# Shrink DB In Chunks.
# Create Database.
# Create Table & Insert Data.
# Disable All Agent Jobs.
Data/ETL
# Selecting Dates & Times.
# Show Only The Domain Of An Email Address.
# Get Rightmost Word In Column.
# Get Row Counts By Date.
# Converting VARCHAR To DATE.
# Splitting And Grouping By Months.
# Find String in all Columns & Databases.
PowerShell
Operational
# Count Rows within a .CSV File.
# Check a Port is Open.
# Disk Management.
# Set IP Address.
# Create Windows Firewall Rule.
# Map Network Drive.
# Compress & Password Protect Files.
# Send an Email.
Linux
# General Info.
# Hardware Info.
# Performance Info.
# User & Group Management.
# Directories & File Manipulation.
RedShift
#
#
#
#
#
Python
#
#
#
AWS CLI
#
#
#
#
#
CSS
#
#
#