Author: Peter Whyte
-
Grant VIEW DATABASE PERFORMANCE STATE in SQL Server
VIEW DATABASE PERFORMANCE STATE is database scoped: check a login across every database, grant it, and know which DMVs still need the server permission.
Written by
-
Move a Table to Another Schema in SQL Server
ALTER SCHEMA TRANSFER moves a table in one statement and drops every permission on it. What to script first, what blocks it (Msg 15348, 15151), and how to rename a schema.
Written by
-
Attach a SQL Server Database Without a Log File
FOR ATTACH_REBUILD_LOG brings a cleanly shut down database back from the .mdf alone, with a 504 KB log, SIMPLE recovery and a broken backup chain. Msg 1813 when the shutdown was not clean.
Written by
-
Could Not Find Stored Procedure (Error 2812)
Could not find stored procedure: the wrong database, the missing schema, and the name SQL Server actually looked for, with a query that finds it anywhere.
Written by
-
How to Back Up a SQL Server Certificate and Its Private Key
BACKUP CERTIFICATE to .cer and .pvk or a single PFX, the errors each form throws, why a PFX export leaves pvt_key_last_backup_date NULL, and a thumbprint-checked restore test.
Written by
-
How to Back Up a Database in SQL Server
A full backup in T-SQL and SSMS with the options worth typing every time: CHECKSUM, COMPRESSION, INIT and COPY_ONLY, ZSTD on SQL Server 2025, then RESTORE VERIFYONLY and msdb to prove it.
Written by
-
Lock Pages in Memory (LPIM) in SQL Server: Check It, Enable It, and When Not To
CONVENTIONAL in sql_memory_model_desc means the service account does not hold Lock Pages in Memory. How to check it, when error 17890 says Windows is paging SQL Server out, why max server memory comes first, and how to grant it.
Written by
-
Cannot Connect to WMI Provider: SQL Server Configuration Manager Will Not Open
Configuration Manager will not open: Cannot connect to WMI provider, Invalid namespace. Why it happens, the mofcomp fix with the right file for your version, and how to check it worked.
Written by
-
SQL Server Configuration Manager: Where to Find It and What a DBA Uses It For
Not in the Start menu? Open it by name: SQLServerManager17.msc. Where to find it for every version, and the jobs a DBA uses it for: service accounts, TCP/IP, ports and encryption.
Written by
-
DBA Scripts: Get Failed Login Summary
The error log is full of Login failed for user ‘sa’. One script groups every failure by login, client address and reason, adds the lockout state, and tells a scan from a stale password or a missing database.
Written by
- Backups & Recovery (18)
- DBA Scripts (154)
- High Availability (HA) (13)
- Installation & Configuration (59)
- Maintenance (25)
- Migration & Upgrades (14)
- Monitoring (9)
- Performance Tuning (37)
- Security (Encryption & Permissions) (25)
- Storage & Capacity (17)
- T-SQL Fundamentals (16)
- Troubleshooting (105)
- Wait Types (236)