Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
One remote view, many identical source tables: how to do?
Message
From
04/06/2002 16:52:30
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
One remote view, many identical source tables: how to do?
Miscellaneous
Thread ID:
00664726
Message ID:
00664726
Views:
60
(Thanks to all who responded to my question yesterday regarding making DSN-less SQL connections.)

My data source will consist of 16 SQL Server databases. Each database represents one of our company's divisions, and contains identically named and structured tables. For example, each database contains a table named APVENDOR, each with identical field names, types, & lengths. Is it possible to set up a single view for use in accessing these tables, simply switching the active database and table depending on which company division the user chooses to be working with? I don't really want to set up sixteen potential views for each table or situation that I need to handle.

Using advice received yesterday, I have been working with connections and remote views. Once I have set up a remote view, I don't seem to be able to switch the database. "Hacking" the .dbc file reveals that the database name resides in a memo field, but I don't see a simple way to change that setting.

Thanks in advance for any assistance,
Randy
Next
Reply
Map
View

Click here to load this message in the networking platform