tsql - SQL server write once column -
Is there a way to configure SQL Server instances to not allow prices to be updated in the database?
For example, once the value is inserted, the value is correct, the other columns may change in the same line, but that value is written only once.
On the update, write a trigger that checks the current column that is joining the new value, Returns the donation back if the values are different.
Create the trigger on mytable for updates on dbo.tr_no_updates such as Update (Mycold) rollback transaction
Comments
Post a Comment