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. call function from stored procedure

call function from stored procedure

Scheduled Pinned Locked Moved Database
databasetutorial
5 Posts 3 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.
  • P Offline
    P Offline
    Prasanta_Prince
    wrote on last edited by
    #1

    How to call function from a Stored Procedure

    P S 2 Replies Last reply
    0
    • P Prasanta_Prince

      How to call function from a Stored Procedure

      P Offline
      P Offline
      Prasanta_Prince
      wrote on last edited by
      #2

      I got one solution : Here it is,-

      SELECT *
      FROM table1
      WHERE attribute1 IN (SELECT * FROM dbo.fn1('ab'))

      modified on Friday, April 15, 2011 10:13 PM

      T 1 Reply Last reply
      0
      • P Prasanta_Prince

        I got one solution : Here it is,-

        SELECT *
        FROM table1
        WHERE attribute1 IN (SELECT * FROM dbo.fn1('ab'))

        modified on Friday, April 15, 2011 10:13 PM

        T Offline
        T Offline
        thatraja
        wrote on last edited by
        #3

        prasanta_prince wrote:

        I got one solution

        Glad you got one yourself.

        prasanta_prince wrote:

        Here it is,-
        SELECT *
        FROM table1
        WHERE attribute1 IN (SELECT * FROM dbo.fn1('ab'))

        BTW please put the code in code block always like below.

        SELECT *
        FROM table1
        WHERE attribute1 IN (SELECT * FROM dbo.fn1('ab'))

        Cheers.

        thatraja


        **My Tip/Tricks
        My Dad had a Heart Attack on this day so don't...
        **

        P 1 Reply Last reply
        0
        • T thatraja

          prasanta_prince wrote:

          I got one solution

          Glad you got one yourself.

          prasanta_prince wrote:

          Here it is,-
          SELECT *
          FROM table1
          WHERE attribute1 IN (SELECT * FROM dbo.fn1('ab'))

          BTW please put the code in code block always like below.

          SELECT *
          FROM table1
          WHERE attribute1 IN (SELECT * FROM dbo.fn1('ab'))

          Cheers.

          thatraja


          **My Tip/Tricks
          My Dad had a Heart Attack on this day so don't...
          **

          P Offline
          P Offline
          Prasanta_Prince
          wrote on last edited by
          #4

          Thanks , i will do it from next time..

          1 Reply Last reply
          0
          • P Prasanta_Prince

            How to call function from a Stored Procedure

            S Offline
            S Offline
            SilimSayo
            wrote on last edited by
            #5

            SET @my_variable =SELECT dbo.my_function(@my_function_parameter)

            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