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. in sql server 2005 i need to send e mails periodically.

in sql server 2005 i need to send e mails periodically.

Scheduled Pinned Locked Moved Database
databasequestionsql-serversysadmin
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

    through my db i want send e-mails periodically,but i don't know to perform this task periodically . how can i do this ?

    N M 2 Replies Last reply
    0
    • P prasadbuddhika

      through my db i want send e-mails periodically,but i don't know to perform this task periodically . how can i do this ?

      N Offline
      N Offline
      neeraj_indianic
      wrote on last edited by
      #2

      Using db you can not send the mail periodically. But this method will help you. Create an excutable file which contains sending mail code. Schedule this excutable file using windows scheduler from control panel. Now your executable file will check the pending mails from your db and will send the mail. Once mail is sent then set the flag sent so that it will not sent again.

      1 Reply Last reply
      0
      • P prasadbuddhika

        through my db i want send e-mails periodically,but i don't know to perform this task periodically . how can i do this ?

        M Offline
        M Offline
        Marek Grzenkowicz
        wrote on last edited by
        #3

        Have you considered using SQL Server Agent?

        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