Calling Funtion within a SP

  • Hi,

     

    I had create a stored procedure with input parameter and a function.

    I need to pass the parameter value from stored procedure to function.

     

    How can i do that.??

    Thanks for ur help

     

    Regards

    Killer

  • SELECT dbo.functionname(@parameter)

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.
    "Change is inevitable... change for the better is not".
    "Dear Lord... I'm a DBA so please give me patience because, if you give me strength, I'm going to need bail money too!"

    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • Or if it's an table valued or inline function :

    Select Cols_List from dbo.FunctionName (@Par1, @Par2) where ...

  • Dear Jeff and RGR'us,

     

    Thanks for ur replies.I will try ur solutions.

     

    Regards

    Killer

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply