how to convert vb function to sql function

  • Understood and no problem.

    Did you try my function, yet?

    --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.


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

  • Jeff Moden (12/15/2008)


    Damned nice try, Peter... thought you had it, but not quite...

    Thanks!

    I didn't give it too much effort. Just enough to get OP a direction.


    N 56°04'39.16"
    E 12°55'05.25"

  • Jedi Master (12/15/2008)


    Well yes as I have to make sure that any user input is correctly validated. I can't afford to have null or errors from the function so I need to get the actual answer or 0.

    No feedback from you, yet. Did you try the function I wrote for you?

    --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.


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

Viewing 3 posts - 16 through 17 (of 17 total)

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