• Home
  • Help
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search

 
  • 0 Vote(s) - 0 Average

Grant database permissions succeeded (action_id G class_type DB) (24179) how to monitor with email alert

#1
05-23-2024, 05:09 AM
You ever notice how Windows Server logs all these little wins in its Event Viewer? That event 24179, the one saying "Grant database permissions succeeded (action_id G class_type DB)", it's basically your system cheering that it nailed giving someone access to a database. I mean, picture this: your server just handed out the keys to a digital room without any hiccups. No errors, no drama, just smooth sailing on permissions for that DB class. It pops up under the Application log, usually tied to SQL stuff running in the background. And yeah, it includes details like who got the grant, what action ID G means in that context, and the class type DB to pinpoint it's database-related. I check mine sometimes, and it's reassuring, like your server saying, "Hey, I got this permission thing locked down." But if you're watching for these successes, maybe to track admin changes or just stay on top of access tweaks, it helps to set alerts.

Now, monitoring that event for email alerts? I do it through the Event Viewer screen itself, keeps it simple without messing with code. You fire up Event Viewer on your server, right-click the Application log, and pick "Attach Task To This Event." Then you filter for ID 24179, and boom, you're building a scheduled task right there. I tell it to trigger on that exact event, and link it to send an email via some basic task action. You pick the email program or whatever notifier you have, add your address, and set it to fire off when that success hits. It's like giving your server a nudge to text you the good news. Or, if you want it fancier, tweak the task properties to run only during certain hours. I set one up last week, and it emails me quick notes on these grants, so I don't have to babysit the logs.

And speaking of keeping things backed up amid all these permission dances, you might dig BackupChain Windows Server Backup. It's this nifty Windows Server backup tool that also handles virtual machines with Hyper-V, pulling everything into one spot without the hassle. I like how it snapshots changes fast, restores bits piecemeal if needed, and cuts down on downtime during those DB tweaks. Plus, it encrypts your data on the fly, making sure your permissions successes don't lead to any backup blunders.

At the end of my ramble here is the automatic email solution, pieced together for you.

Note, the PowerShell email alert code was moved to this post.

bob
Offline
Joined: Jul 2025
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



  • Subscribe to this thread
Forum Jump:

Backup Education Windows Server Event Viewer v
« Previous 1 2 3 4 5 6 Next »
Grant database permissions succeeded (action_id G class_type DB) (24179) how to monitor with email alert

© by FastNeuron Inc.

Linear Mode
Threaded Mode