In response to Jonathan Harden :
> Hello,
>
>
>
> I am trying to write a function which takes an argument and uses that argument
> to return a set of rows from a table with the name given (or possibly inferred)
> from the argument.
You have to use EXECUTE. Build a string that contains your select, and
execute that string.
Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)