MySQL supports dynamic SQL with EXECUTE and PREPARE statements. Here is how to pass a table name as a parameter and return all rows from it.
SQL SERVER – Keeping MSDB System Database Lean and Fit – Notes from the Field #033
The MSDB database is one of the most ignored on any server. Tim shares his tricks to keep the MSDB system database lean, fit and at its best settings.
Change Fill Factor in SQL Server: SQL in Sixty Seconds #069
To change fill factor for an index, rebuild it with a new FILLFACTOR value. The tests here measure what 100, 80 and 50 do to page count, scan reads and page splits, and when a lower value is not worth the space.
Finding Databases That Have Never Been Backed Up
Your backup job is green, but is every database in it? Here is a read-only way to find the ones missing from msdb history.
Comparing Two Schemas With sys.columns and a FULL OUTER JOIN
Use read-only queries for comparing two schemas, finding missing columns, checking type details, and reviewing indexes and modules.
SQL Server: Why Retrying an INSERT Can Create Duplicate Rows
Retrying an INSERT can create duplicate rows even with an identity primary key. These tested examples use a stable request ID to return the original order, reject changed inputs, and preserve unrelated errors.
GDR or CU: Choosing Your Update Branch
Choose GDR or CU for SQL Server by understanding security and cumulative branches, checking the exact build, and testing a branch change.







