Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do we use multiple datasets with dbcs?
Message
From
07/06/2003 12:53:44
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00793953
Message ID:
00797652
Views:
20
I solved the problem with the help of a previous thread, the id of which I can't lay my hands on at the moment. I've now got a working form which lets me choose a dataset and opens the right databases.
Thanks for your comments.

>Sorry, I'm not a big Data Environment guy. If had to make a guess, it would be to try and edit the properties that contain the paths to the files.
>
>
>
>>Thanks Fred
>>
>>I've already tried something similar and it isn't working.
>>
>>I have a "pathselect" form from which a dataset is selected.
>>
>>I then close any open databases, and open specifically the dbc in the selected target path. Although this succeeds and manual "use" commands open the correct tables, the problem seems to be the tables used in the dataenvironments. These seem to insist on using only the tables in the location I pointed do during development.
>>
>>suggestions?
>>
>>
>>>There are a number of different options depending on how you have coded the app but this is the way I would handle it. You can store each business in it's own data directory and use the same DBC name and table names.
>>>
>>>You could have a naming convention for your data folders or a configuration file pointing to the data folder. This way you could add as many businesses or datasets as you wanted. When opening the DBC, just be sure to get the selected one.
>>>
>>>
>>>
>>> Business 1
>>> \\Server1\Share1\Data
>>>

>>>
>>> Business 2
>>> \\Server2\Share1\Data
>>>

>>>

>>>
>>>Hope This Helps
>>>
>>>
>>>
>>>>I have a client who uses both my DOS and VFP6 applications which do not make use of DBC technology.
>>>>
>>>>I've upgraded to vfp8 and decided its time to use the enhanced transaction security and various other things that come with DBCs.
>>>>
>>>>My client runs two separate but very similar businesses using my software and all they have to do on entry is pick the relevant dataset from a popup and all the relevant datafiles are correctly opened as required.
>>>>
>>>>How do I achieve that functionality with DBCs?
Previous
Reply
Map
View

Click here to load this message in the networking platform