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.

How to Set up DB Mirroring using T-SQL
15 May 2018 · 6 min read

How to Set up DB Mirroring using T-SQL

Set up SQL Server database mirroring with T-SQL to bypass GUI edition restrictions and configure synchronous or asynchronous mirroring with a repeatable, scripted process.

Read article →
How to List the Database Name and File Locations
15 May 2018 · 6 min read

How to List the Database Name and File Locations

Learn how to quickly list every SQL Server database name and its physical file locations using sp_msforeachdb and sys.sysfiles, essential knowledge for any DBA.

Read article →
SQL Server DMV Query to Output Index Fragmentation by Database / Table
15 May 2018 · 6 min read

SQL Server DMV Query to Output Index Fragmentation by Database / Table

Learn how to query SQL Server index fragmentation using DMV views and identify which indexes need rebuilding or reorganising to restore query performance.

Read article →
How to Remove Replication Monitor Red Crosses
15 May 2018 · 6 min read

How to Remove Replication Monitor Red Crosses

Red crosses in Replication Monitor almost always mean orphaned replication metadata left behind after a publication or subscription was deleted incorrectly. Clear them by running sp_removedbreplication on the affected database. If they persist, recreate the publication with its original name and remove it properly, or as a last resort delete the orphaned rows from the distribution database.

Read article →
How to Set up an SQL Server Alias Name
15 May 2018 · 6 min read

How to Set up an SQL Server Alias Name

A SQL Server alias maps a friendly name to your server instance, saving hours of reconfiguration when servers change. Set one up in under five minutes.

Read article →
How to Dynamically Backup and Compress User Databases (SQL 2008)
15 May 2018 · 6 min read

How to Dynamically Backup and Compress User Databases (SQL 2008)

Stop updating maintenance plans every time a database is added or dropped. This stored procedure dynamically discovers and backs up all user databases with compression enabled.

Read article →
A Visual Explanation of SQL Joins
15 May 2018 · 6 min read

A Visual Explanation of SQL Joins

SQL joins are a leading cause of incorrect query results in production systems. Learn how each join type works and when to use it correctly in SQL Server.

Read article →
Add these 5 Must-Have DMV Queries to your DBA Toolbelt!
15 May 2018 · 6 min read

Add these 5 Must-Have DMV Queries to your DBA Toolbelt!

Five field-tested DMV queries that give you immediate visibility into SQL Server performance, from procedure execution frequency to wait statistics and plan cache health.

Read article →
Format drives with correct allocation and offset for maximum SQL Server performance
15 May 2018 · 6 min read

Format drives with correct allocation and offset for maximum SQL Server performance

Incorrect disk formatting silently degrades SQL Server IO performance every day. Learn the correct allocation unit size and partition offset settings to fix it.

Read article →
How to Resolve Database Restore Operation-Related Errors
15 May 2018 · 6 min read

How to Resolve Database Restore Operation-Related Errors

Learn how to recover a SQL Server database stuck in the restoring state using RESTORE WITH RECOVERY and alternative recovery paths when log files are missing or corrupt.

Read article →
How to create a DDL Trigger to notify on New Database Creation
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 →
How to Speed up SQL Management Studio
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 →
← Previous Page 7 of 10 Next →

SQL Server insights, monthly.

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