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. Store Procedure parameter

Store Procedure parameter

Scheduled Pinned Locked Moved Database
helptutorial
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.
  • F Offline
    F Offline
    faizurrahman
    wrote on last edited by
    #1

    I want to write a store procedure which accept anothor store procedure as parameter and then retrun the datatypes of input variables of given store procedure. Plz help if any one knows n how to do it.

    A 1 Reply Last reply
    0
    • F faizurrahman

      I want to write a store procedure which accept anothor store procedure as parameter and then retrun the datatypes of input variables of given store procedure. Plz help if any one knows n how to do it.

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

      You can pick up the definition of the stored proc from syscomments -

      select text from syscomments where id = object_id('procname')

      and concat all the comments together, then parse for the parameters.

      Bob Ashfield Consultants Ltd

      F 1 Reply Last reply
      0
      • A Ashfield

        You can pick up the definition of the stored proc from syscomments -

        select text from syscomments where id = object_id('procname')

        and concat all the comments together, then parse for the parameters.

        Bob Ashfield Consultants Ltd

        F Offline
        F Offline
        faizurrahman
        wrote on last edited by
        #3

        Thank you I have got solution by a simple query: select * from information_schema.Parameters where specific_Name = 'ProceName'

        A 1 Reply Last reply
        0
        • F faizurrahman

          Thank you I have got solution by a simple query: select * from information_schema.Parameters where specific_Name = 'ProceName'

          A Offline
          A Offline
          Ashfield
          wrote on last edited by
          #4

          You learn something every day. I'll keep that view in mind. :)

          Bob Ashfield Consultants Ltd

          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