Tag: sql server

SQL Server insights from 25+ years in the field

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

15 May 2018 · 6 min read

How to create a DDL Trigger to notify on New Database Creation

Learn how to use a server-scoped DDL trigger to automatically notify your DBA team whenever a new database is created in SQL Server, preventing unplanned databases from slipping through the cracks.

Read article →
15 May 2018 · 6 min read

How to Speed up SQL Management Studio

SSMS loading slowly in restricted networks? Disabling the Windows certificate validation check can cut startup time from 30 seconds to under 5 seconds.

Read article →
15 May 2018 · 6 min read

Synchronous Database Mirroring (High-Safety Mode)

Synchronous database mirroring ensures zero data loss by confirming every transaction on both the principal and mirror server before notifying the client. Here is how it works.

Read article →
15 May 2018 · 2 min read

Transfer / Migrate users between versions of SQL Server

Migrating SQL Server logins requires more than moving databases. Learn how to transfer logins with original SIDs and password hashes intact using sp_help_revlogin.

Read article →
15 May 2018 · 6 min read

Return Top 50 Queries by Average CPU

When your SQL Server is running hot, knowing which queries are responsible is the first step. This script uses DMVs to surface the top 50 queries by average CPU time.

Read article →
15 May 2018 · 5 min read

How to create a SQL Server Database Snapshot

A SQL Server database snapshot captures your database at a point in time, giving you a fast rollback option before risky changes with minimal overhead.

Read article →
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 →
15 May 2018 · 5 min read

How to Attach a Database with No Log File

Learn how to attach a SQL Server database when the log file is missing. Two methods covered, including the modern replacement for the deprecated sp_attach_single_file_db procedure.

Read article →
15 May 2018 · 6 min read

How to Kill all 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 →
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 →
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 →
15 May 2018 · 5 min read

How to Check Authentication Method into SQL Server (SharePoint)

Query sys.dm_exec_connections to instantly identify whether SharePoint is authenticating to SQL Server via Kerberos or NTLM, and resolve SSRS integrated mode failures.

Read article →
← Previous Page 5 of 7 Next →

SQL Server insights, monthly.

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