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

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top