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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -