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. How to create an outlook task using SQL?

How to create an outlook task using SQL?

Scheduled Pinned Locked Moved Database
databasesql-serversysadmintutorialquestion
4 Posts 2 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.
  • O Offline
    O Offline
    obarahmeh
    wrote on last edited by
    #1

    Dear All, I need to create a procedure that creates an outlook task for a set of domain users when some condition in the data base is fired. Is this possible? I am using SQL Server 2008 R2, Exchange Outlook 2010 Regards

    Kind Regards OBarahmeh

    D 1 Reply Last reply
    0
    • O obarahmeh

      Dear All, I need to create a procedure that creates an outlook task for a set of domain users when some condition in the data base is fired. Is this possible? I am using SQL Server 2008 R2, Exchange Outlook 2010 Regards

      Kind Regards OBarahmeh

      D Offline
      D Offline
      David Mujica
      wrote on last edited by
      #2

      Take a look at this article, it might give you a starting point. Sending Tasks Programmatically[^]

      O 1 Reply Last reply
      0
      • D David Mujica

        Take a look at this article, it might give you a starting point. Sending Tasks Programmatically[^]

        O Offline
        O Offline
        obarahmeh
        wrote on last edited by
        #3

        Hi, I need to create the tasks through an SQL Server procedure and not using .NET Do u have any ideas about how to do this in a procedure inside the SQL Server? Regards

        Kind Regards OBarahmeh

        D 1 Reply Last reply
        0
        • O obarahmeh

          Hi, I need to create the tasks through an SQL Server procedure and not using .NET Do u have any ideas about how to do this in a procedure inside the SQL Server? Regards

          Kind Regards OBarahmeh

          D Offline
          D Offline
          David Mujica
          wrote on last edited by
          #4

          I'm afraid you won't be able to directly create a task through SQL Server, but I'm not an absolute expert at your requirement. However, this is how I might approach the problem. 1) In TSQL, there is a command called, xp_cmdshell, which allows you to execute a command shell 2) Create a command-line application that would take as command line parameters the values you need to create a Task. There are significant security issues related to enabling xp_cmdshell, so you may want to evaluate those issues first.

          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