T-SQL

  • Can anybody help me tell how to call a T-SQL user defined Function in a stored Procedure?

    Need help ASAP.

    Thanks in Advance.

    Regards

    Tejinder

  • If it's ASAP, look it up in Books Online. That's what the documentation is for.

    It really depends on whether or not you're calling a scalar or table valued function.

    A scalar would be within the code something like:

    SELECT col1,

    MyFunction(col2) AS SomeName

    FROM...

    Where a table valued function would be something like:

    SELECT *

    FROM MyFunction()

    There are a lot of variations within this. Check the documentation.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • Thanks for your Help Grant.

    Regards

    Tejinder

Viewing 3 posts - 1 through 2 (of 2 total)

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