Question : What table contains company/database name - MS Dynamics GP

I have a customer that uses multiple production GP databases. I'm writing an SSRS report that needs to run over any of the databases. I would like to have the "Company" as a report paramater. I would like the selection to be the same as on the login screen (see attached).
Question: Does anyone know what table or tables contain this information?

Answer : What table contains company/database name - MS Dynamics GP

Not 100% sure, but I think the column [interid] in the table [sy01500] gives you a list of company/db names -

SELECT interid FROM dynamics..sy01500

Random Solutions  
 
programming4us programming4us