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
 General SQL Server Forums
 New to SQL Server Programming
 URGENT!!! Trigger Problem!

Author  Topic 

Gurdinho
Starting Member

1 Post

Posted - 2009-10-24 : 08:58:55
Hey everyone,

I have a problem about creating a trigger for the reservation system.

Customer (customerID, title, firstName, familyName, specialRequirements, smokingFlag, emailAddress) <----- Customer TABLE
Reservation (reservationID, customerID, paymentID, checkIn, checkout, status) <------ Reservation TABLE (status can be "valid" or "cancelled")
ConfirmationEmail (emailID, customerID, reservationID, emailText, emailSubject, dateSent) <------ ConfirmationEmail TABLE (emailTEXT = "The reservation is valid or cancelled")

In this system, each time a new reservation is made, or an existing reservation is cancelled, the customer in question should be informed of it by an email. And I need to provide this notification to the customer by using "Trigger" in SQL.

Do you have any suggestions?

Thanks for your help and your ideas from now on.

Have a nice weekend.

X002548
Not Just a Number

15586 Posts

Posted - 2009-10-24 : 11:36:51
That would be a bad idea

Can you run a query against the data to show us when a reservation is made or cancelled based on a datetime



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page
   

- Advertisement -