This of course begs the question of what on earth would a database be doing having "...thousands of tables..." in it, and what a user application would be doing not knowing what those tables are.
I'm guessing we have a design here where each table is really a single entity, instead of that entity being a row in just one table...
Jeff Mason
Custom Apps, Inc.
www.custom-apps.com