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 call another stored procedure within a sql server extended stored procedure?

How to call another stored procedure within a sql server extended stored procedure?

Scheduled Pinned Locked Moved Database
databasequestioncsharpc++sql-server
3 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.
  • X Offline
    X Offline
    Xiangyang Liu
    wrote on last edited by
    #1

    Here is the situation: The user logs onto the database and calls a sql server extended stored procedure. I wrote the extended stored procedure in C/C++. How do I call another stored procedure from the C/C++ code? I want to do this without connecting to the database again (the extended stored procedure is already running within the sql server process). What is the API I should use (if there is any)?[

    My articles and software tools

    ](http://mysite.verizon.net/XiangYangL/index.htm)

    A 1 Reply Last reply
    0
    • X Xiangyang Liu

      Here is the situation: The user logs onto the database and calls a sql server extended stored procedure. I wrote the extended stored procedure in C/C++. How do I call another stored procedure from the C/C++ code? I want to do this without connecting to the database again (the extended stored procedure is already running within the sql server process). What is the API I should use (if there is any)?[

      My articles and software tools

      ](http://mysite.verizon.net/XiangYangL/index.htm)

      A Offline
      A Offline
      anandss
      wrote on last edited by
      #2

      Use SqlContext

      X 1 Reply Last reply
      0
      • A anandss

        Use SqlContext

        X Offline
        X Offline
        Xiangyang Liu
        wrote on last edited by
        #3

        The SqlContext class is not available in .NET 2003. Thanks for replying.[

        My articles and software tools

        ](http://mysite.verizon.net/XiangYangL/index.htm)

        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