sql - How to abort an insert of multiple rows in a trigger -


With SQL Server 2005 I have declared a trigger that is removed after "trigger, update", using the WHILE and CURSOR loop on the lines of the INSERTED table in this trigger when I get a line that is not satisfied with a specific situation :

I do not want to include any rows of triggers to raise an error and removed from the trigger (even those people who already have my position Ntusht not). & Lt; --- I do not know how to do this!

Can you tell me how can I increase the error and stop the inclusion?

Use rollback

  If & lt; Some condition & gt; BEGIN RAISERROR ('condition does not satisfy anything', 16, 1) Rollback transaction end  

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%? -