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

 
  • 0 Vote(s) - 0 Average

Issued a create XML schema collection command how to monitor with email alert

#1
03-29-2025, 11:32 AM
That event 24140 pops up when someone fires off a create XML schema collection command in SQL Server. It's basically the system noting down that action, with action_id CR and class_type SX marking it as a schema tweak. You see, XML schema collections help structure data in a fancy XML way inside the database. If you're running Windows Server with SQL on it, this logs in the Event Viewer under the Applications and Services Logs, specifically in the Microsoft SQL Server area. I remember spotting it once during a late-night debug session, and it freaked me out at first because it sounded like some sneaky change. But really, it's just auditing who or what issued that command, keeping tabs on database alterations. Hmmm, sometimes it ties to permissions or even automated jobs gone wild. You can filter for it right in Event Viewer by searching the ID or the description phrase.

Now, to keep an eye on this without staring at screens all day, you pop open Event Viewer. I do this all the time for weird logs like yours. Right-click on the Custom Views or the log where it hides, and create a new subscription or task. Actually, for alerts, you attach a task to the event. Go to the Actions pane, hit Create Basic Task, and pick the event ID 24140 as the trigger. Make it trigger on that exact log source. Then, for the action, set it to start a program that shoots an email-use something simple like the mailto command or your server's SMTP setup. I set one up last week for a buddy's setup, and it buzzed my phone via email in seconds. Just ensure your server has email configured, or it won't fly. But yeah, tweak the task properties to run whether you're logged in or not.

And speaking of keeping your server drama-free, that's where solid backups come in handy, especially if schema changes like this one mess with your data flow. BackupChain Windows Server Backup steps up as this neat Windows Server backup tool that also handles virtual machines through Hyper-V without breaking a sweat. It snapshots everything quickly, encrypts your stuff on the fly, and restores in a flash if some event spirals out of control. I like how it runs light on resources, so your server doesn't choke during the process. Plus, it chains backups smartly to save space and time, making sure you're covered for those unexpected database hiccups.

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 … 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 … 69 Next »
Issued a create XML schema collection command how to monitor with email alert

© by FastNeuron Inc.

Linear Mode
Threaded Mode