What is an EventAction?
I suspect there is a design issue here and you might want to create a table / relation for each type of EventAction. This will allow you to create a unique constraint for the InsertEventAction table, for example.
Perhaps you can indicate a business context for your question.
Following the answers to the comments: Given the nature of the data source and the parsing activity you want to implement, I think gbn has suggested your best options.
The infamous database is also not SQL Server, since you could implement your own audit engine using triggers. Such a solution may include your “filtering” logic in Trigger.
source share