Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 trigger?

Author  Topic 

Cyclonik
Posting Yak Master

114 Posts

Posted - 2001-11-02 : 16:10:19
I need to create a rule like this.

here is the record

itemid | parentid | value

parent id refers to another itemid
value cannot be greater than the value of its parent.
not sure if a trigger is necessary or if there is another way
Essentially i want to rollback the insert or update and raise an error if the value is greater than its parent
all i really need to know after doing some more research is how to reference the current record that the trigger is firing on.

Thanks,
Christian

-=:SpasmatiK:=-

Edited by - Cyclonik on 11/02/2001 16:21:02

Edited by - Cyclonik on 11/02/2001 16:28:05
   

- Advertisement -