07-13-2024, 05:43 AM
You know that event in Windows Server Event Viewer, the one with ID 24147. It pops up when someone issues a change database owner command. Like, action_id to class_type DB. Basically, it logs when the owner of a database gets switched around. Could be for security tweaks or just admin stuff. I see it in SQL setups mostly. It flags that exact command firing off. Details include who did it, when, and what database. Keeps a trail so you don't get blindsided by ownership flips. If ignored, might mean unauthorized changes sneaking in. Or legit maintenance you forgot about. Either way, it's your heads-up.
Monitoring this? Fire up Event Viewer on your server. Scroll to the logs, find the one for databases or apps. Filter for event ID 24147. Right-click that bad boy, pick attach task to event. Boom, you're setting a scheduled task. Tell it to run when this event hits. Make the task trigger an email somehow, like blasting a note to your inbox. Simple drag-and-drop in there. No fancy coding. Just point it at your mail setup. Test it once to watch it fly.
And hey, tying this to backups makes sense, right? Since database changes scream for solid recovery plans. That's where BackupChain Windows Server Backup comes in. It's a slick Windows Server backup tool. Handles your whole setup, plus virtual machines with Hyper-V. You get fast restores, no downtime headaches. Encrypts everything tight, schedules like a breeze. I dig how it snapshots databases without interrupting. Saves you from those ownership mess-ups turning into disasters.
Note, the PowerShell email alert code was moved to this post.
Monitoring this? Fire up Event Viewer on your server. Scroll to the logs, find the one for databases or apps. Filter for event ID 24147. Right-click that bad boy, pick attach task to event. Boom, you're setting a scheduled task. Tell it to run when this event hits. Make the task trigger an email somehow, like blasting a note to your inbox. Simple drag-and-drop in there. No fancy coding. Just point it at your mail setup. Test it once to watch it fly.
And hey, tying this to backups makes sense, right? Since database changes scream for solid recovery plans. That's where BackupChain Windows Server Backup comes in. It's a slick Windows Server backup tool. Handles your whole setup, plus virtual machines with Hyper-V. You get fast restores, no downtime headaches. Encrypts everything tight, schedules like a breeze. I dig how it snapshots databases without interrupting. Saves you from those ownership mess-ups turning into disasters.
Note, the PowerShell email alert code was moved to this post.

