Tag: database administration

SQL Server insights from 25+ years in the field

Performance tips, security advisories, health check findings, and industry analysis. Practical, technically accurate, no fluff.

Script to change ALL Database Objects back to dbo
15 May 2018 · 5 min read

Script to change ALL Database Objects back to dbo

Wrong schema ownership breaks vendor upgrades and migrations. Use this script to reassign all SQL Server database objects back to dbo quickly and reliably.

Read article →
How to Kill All SQL Server Database Connections
15 May 2018 · 7 min read

How to Kill All SQL Server Database Connections

Clear all active SQL Server connections fast using SINGLE_USER mode or a scripted kill loop. Covers when to use each method and what to watch out for.

Read article →
How to Search every Table in a SQL Database for a String
15 May 2018 · 5 min read

How to Search every Table in a SQL Database for a String

Learn how to build a stored procedure that searches every table and character-based column in a SQL Server database for a specific string value.

Read article →
How to update all objects in a table to DBO
15 May 2018 · 6 min read

How to update all objects in a table to DBO

Fix broken SQL Server permission chains by transferring all object ownership to DBO. Covers sp_changeobjectowner, ALTER AUTHORIZATION and production gotchas.

Read article →
How to Find Which Files Belong to Which SQL Database
15 May 2018 · 5 min read

How to Find Which Files Belong to Which SQL Database

Learn how to map SQL Server database files to their databases using a simple JOIN on sys.master_files and sys.databases, ordered by file size to spot problems fast.

Read article →
How to Drop and Recreate Foreign Key Constraints in SQL Server
15 May 2018 · 6 min read

How to Drop and Recreate Foreign Key Constraints in SQL Server

Learn how to safely drop and recreate foreign key constraints in SQL Server using system catalogue views to generate precise ALTER TABLE scripts automatically.

Read article →
← Previous Page 2 of 2

SQL Server insights, monthly.

Performance tips, security advisories, and industry analysis. No fluff, no spam.