UDF and RowCount

  • I have a situation in which I am using a UDF to return a table but what I need to happen is if the table has more than 2 records than I only what to passout one record. Any ideas?

    Thanks,
    Art
    Database Analyst
    Tastefully Simple, Inc.

    alorenzini@tastefullysimple.com
    " Some days, it's not even worth chewing through the restraints!

  • Without knowing what exactly you try to achieve and no ddl I can only guess.

    Does it matter which record is returned or do you just want any record?

    Can't you use something like Select top 1 * from udf_results()

    [font="Verdana"]Markus Bohse[/font]

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

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