Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. this is what iwant to do

this is what iwant to do

Scheduled Pinned Locked Moved Database
databasetutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    prasadbuddhika
    wrote on last edited by
    #1

    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 ,:)

    J B 2 Replies Last reply
    0
    • P prasadbuddhika

      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 ,:)

      J Offline
      J Offline
      John ph
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • P prasadbuddhika

        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 ,:)

        B Offline
        B Offline
        Burnsys2
        wrote on last edited by
        #3

        i have a dedicated table "Emails" with columns: "From","To","Subject","Text" The table has trigger on insert that calls a xp_sendmail Any time i need to send an email fron anywhere all i have to do is insert a record in that table!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups