this is what iwant to do
-
in the database i have a table for complains and to solve the complain 24hrs are given.if the time is expired i want to db to generate an E-mail and send it to manager . i'm planning to do this by using a trigger. if it is possible to do how to impliment this other wise could you please suggest how to do it ,:)
-
in the database i have a table for complains and to solve the complain 24hrs are given.if the time is expired i want to db to generate an E-mail and send it to manager . i'm planning to do this by using a trigger. if it is possible to do how to impliment this other wise could you please suggest how to do it ,:)
Trigger's are probably used against a database operation like Insert, Update, Delete. Not when a job is failed. Why not try with Sql Server Agent and the extended stored procedure xp_sendmail. Sql server has the ability to send mail without being triggered from the application. you can set up a job through Sql Server agent that wakes up and check's at proper intervals whether any job is failed and if yes then send's email. Regards John
-
in the database i have a table for complains and to solve the complain 24hrs are given.if the time is expired i want to db to generate an E-mail and send it to manager . i'm planning to do this by using a trigger. if it is possible to do how to impliment this other wise could you please suggest how to do it ,:)