>sorry for the mistake... I mean a table on a function
SELECT OBJECT_SCHEMA_NAME ( OBJECT_ID('TableNameHere'))
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.