I have about 20 company databases on a single MS SQL2000 server which all have identical tables. I would like the report to prompt the user to select which company to report against. There isn't any problem with the prompt, but how do I get the company selected to be part of the SQL command? For example, if the user wants a report for Company1, how would I get the query to run against Company1:
Use company1
Select table1.fielda, table1.fieldb...etc
or
Select company1.dbo.table1.fielda, company1.dbo.table1.fieldb...etc
The SQL would be executed from CR v8.5. Is what I'm asking even possible? Thanks for any advice.
Use company1
Select table1.fielda, table1.fieldb...etc
or
Select company1.dbo.table1.fielda, company1.dbo.table1.fieldb...etc
The SQL would be executed from CR v8.5. Is what I'm asking even possible? Thanks for any advice.