Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help in displaying message when trigger in SQL works!

Status
Not open for further replies.

1661

MIS
Aug 9, 2002
12
US
Hi,

We have a database in SQL Server. We are using ASP pages to update some of the data. We have a trigger set that if the rent entered is greater than 1000 it will fire. How do I make it work in ASP?? Please reply ASAP!
Here is the code for my trigger:
CREATE TRIGGER TooMuchRent
on team07_PropertyForRent_tbl
For Insert
AS
DECLARE @propertyNo char(5)
Set @propertyNo = (Select propertyNo from INSERTED)
If (Select rent FROM INSERTED) >1000
BEGIN
PRINT 'Assign expereinced staff member to property number '+ @propertyNo + '.'
End
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top