Question

I am working in a c#.net application
I am working on a project of school management

I had some entries in more than one tables some times so is it better to handle this in front end or I should use database trigger for this .
can you tell which thing is better in performance and time efficient

Was it helpful?

Solution

If those triggers affect database integrity or data integrity (checking things, inserting other records, making backup copies of records before modification or maybe something else) then it should be database triggers, because you never know how many of your frontends will operate on the database at a given time and syncronizing them by yourself is a huge pain in the ... and it's also prone to errors while you already have a less-painful and less error-prone method at hand.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top