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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. how to execute stored procedure in a function using sql server 2000

how to execute stored procedure in a function using sql server 2000

Scheduled Pinned Locked Moved Database
databasetutorialsql-serversysadmin
2 Posts 2 Posters 1 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.
  • D Offline
    D Offline
    developerit
    wrote on last edited by
    #1

    hi iam using sql server 2000 i want to execute stored procedure in a function and the same function i want to call in view. can you give example which helps me

    T 1 Reply Last reply
    0
    • D developerit

      hi iam using sql server 2000 i want to execute stored procedure in a function and the same function i want to call in view. can you give example which helps me

      T Offline
      T Offline
      The Digital Worm
      wrote on last edited by
      #2

      developerit wrote:

      i want to execute stored procedure in a function

      This is not possible by design, but you can convert the stored procedure in a function and then call it from another function or stored procedure.

      developerit wrote:

      and the same function i want to call in view.

      Not at all possible, View is a mare logical representation of a select statement over tables/ other views. An in line table-valued function can perform as a parametrized view and you can call that in other functions/ stored procedures.

      WJFK (Write Just for Kicks)

      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