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 2008 Forums
 Transact-SQL (2008)
 I need help with this

Author  Topic 

ka.ak
Starting Member

2 Posts

Posted - 2011-12-06 : 22:38:03
Please help me how to write the query for creating row-level triggers.

a)create a trigger(list_trg1) to run after insert or update of listing status in the LISTING table that meets the following requirements:
i) If the listing status is being set to "I"(inactive),then set the property status in the PROPERTY table to "U" ( unlisted).

ii) If the listing status is being set to "A" (active), then set the property status in the property table to "L" (listed)

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-12-06 : 23:23:20
see below link and try to do it yourself. in case you face any issue post and we will help

http://msdn.microsoft.com/en-us/library/ms189799.aspx

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -