>Thanks...but you cann't use a execute on function
O!
I missed that part.
You can't use dynamic SQL also in function. So getting the schema is redundant.
But instead of function you could use SP.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.