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. Extended Procedures question

Extended Procedures question

Scheduled Pinned Locked Moved Database
questiondatabasecom
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.
  • T Offline
    T Offline
    Tom Wright
    wrote on last edited by
    #1

    If I create and XP, and I want to connect to my XP. How do I go about doing that? Will i do an execute from my app? Right now I do all my selects and updates using a connection pointer like this: m_pConnection->Execute(_bstr_t(mySelect),NULL, NULL); Will I also connect to my XP this way? I'm making an XP that will alert me to a trigger in a table that I have set. So that any new record placed in there will alert me so that I do not have to loop every 3 seconds to see if there's new data. Thanks Tom Wright tawright915@yahoo.com

    D 1 Reply Last reply
    0
    • T Tom Wright

      If I create and XP, and I want to connect to my XP. How do I go about doing that? Will i do an execute from my app? Right now I do all my selects and updates using a connection pointer like this: m_pConnection->Execute(_bstr_t(mySelect),NULL, NULL); Will I also connect to my XP this way? I'm making an XP that will alert me to a trigger in a table that I have set. So that any new record placed in there will alert me so that I do not have to loop every 3 seconds to see if there's new data. Thanks Tom Wright tawright915@yahoo.com

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

      As far as TSQL is concerned, an XP is the same as a normal SP. If you can execute SPs using this method (I don't see why you can't), then you should be able to execute XPs also.


      Database FAQ

      T 1 Reply Last reply
      0
      • D David Salter

        As far as TSQL is concerned, an XP is the same as a normal SP. If you can execute SPs using this method (I don't see why you can't), then you should be able to execute XPs also.


        Database FAQ

        T Offline
        T Offline
        Tom Wright
        wrote on last edited by
        #3

        cool I'll try it. Just gotta write my XP and find out how to return a value. I'm going to assume that, that is the same as SP's too? Thanks Tom Wright tawright915@yahoo.com

        D 1 Reply Last reply
        0
        • T Tom Wright

          cool I'll try it. Just gotta write my XP and find out how to return a value. I'm going to assume that, that is the same as SP's too? Thanks Tom Wright tawright915@yahoo.com

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

          I've written an article about XPs (http://www.codeproject.com/database/extended_sp.asp[^]). You may find this helpful.


          Database FAQ

          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