>Is there a way to determine if a table is part of a database (DBC)? If a table is opened (USE {tablename}), is there a way to determine if this table is part of a database? Thanks.
Yes, check INDBC function.
See also
Check if table is part of DBC
If it's not broken, fix it until it is.
My Blog