• Maybe a silly question, but why on earth does schema need to be an input parameter?

    This is exactly the same as saying the table name must be an input parameter..

    ..or the columnname.. etc..

    The schemaname is part of the object's qualified name, and shouldn't be needed to be handled as a parameter. If you could get rid of this requirement, then the whole thing would become much easier for you. 🙂

    /Kenneth