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
 Transact-SQL (2000)
 Please Give Me Trigger

Author  Topic 

azim
Starting Member

29 Posts

Posted - 2002-06-15 : 18:27:54
I want Trigger to Check The Transactions Table when i want to delete Product from Products Table if there is at least one Transaction with this Product stop Delete Else Delete
Thanks a lot

azim

robvolk
Most Valuable Yak

15732 Posts

Posted - 2002-06-15 : 19:15:09
A. You didn't list the structure(s) of your table(s), and without them there is no way anybody can help you.

B. You don't need a trigger for this at all. Read Books Online about "foreign keys".

Go to Top of Page
   

- Advertisement -