I have a VFP app. It runs on cloud servers (not sure that matters for this discussion).
I have many customers. My customers for this discussion are companies.
Sometimes one of my customers will run multiple instances of my app. Each instance is totally separate, having no knowlege of the other instance.
When my customers are running multiple instances of my app, there is a need to share some of the data maintained by my app across those multiple instances of my app.
Here is the normal folder structure for my app:
Myapp home directory
Under Myapp home directory is the usual DATA folder
When a customer is running multiple instances of my app, simply for organizational purposes I setup the folder structure like this:
Company1 folder
MyappInstance1 home directory
Under MyappInstance1 home directory is the usual DATA folder
MyappInstance2 home directory
Under MyappInstance2 home directory is the usual DATA folder
To be clear, there is a shortcut on the desktop to run MyappInstance1.exe from Company1\MyappInstance1
and a shortcut on the desktop to run MyappInstance2.exe from Company1\MyappInstance2
I have a database, let's call it Myapp.dbc
Inside the dbc are a lot of tables. Let's say we have TableA, TableB and TableC.
There is an instance of Myapp.dbc in both the Company1\MyappInstance1\Data folder and there is an instance of Myapp.dbc in the Company1\MyappInstance2\Data folder.
Now, lets say TableC contains data that I would like to share between MyappInstance1 and MyappInstance2.
I would create another dbc named MyappShared.dbc
I take TableC out of Myapp.dbc and move it to become a table in MyappShared.dbc
The location for MyappShared.dbc would be relative to both Myappinstance1's home and MyappInstance2's home using ..\
As long as I use the same folder structure for all companies running my app, even when they only need one instance of my app, meaning there would always be a CompanyX parent folder, this should work. Right?
Thanks,
John
I have many customers. My customers for this discussion are companies.
Sometimes one of my customers will run multiple instances of my app. Each instance is totally separate, having no knowlege of the other instance.
When my customers are running multiple instances of my app, there is a need to share some of the data maintained by my app across those multiple instances of my app.
Here is the normal folder structure for my app:
Myapp home directory
Under Myapp home directory is the usual DATA folder
When a customer is running multiple instances of my app, simply for organizational purposes I setup the folder structure like this:
Company1 folder
MyappInstance1 home directory
Under MyappInstance1 home directory is the usual DATA folder
MyappInstance2 home directory
Under MyappInstance2 home directory is the usual DATA folder
To be clear, there is a shortcut on the desktop to run MyappInstance1.exe from Company1\MyappInstance1
and a shortcut on the desktop to run MyappInstance2.exe from Company1\MyappInstance2
I have a database, let's call it Myapp.dbc
Inside the dbc are a lot of tables. Let's say we have TableA, TableB and TableC.
There is an instance of Myapp.dbc in both the Company1\MyappInstance1\Data folder and there is an instance of Myapp.dbc in the Company1\MyappInstance2\Data folder.
Now, lets say TableC contains data that I would like to share between MyappInstance1 and MyappInstance2.
I would create another dbc named MyappShared.dbc
I take TableC out of Myapp.dbc and move it to become a table in MyappShared.dbc
The location for MyappShared.dbc would be relative to both Myappinstance1's home and MyappInstance2's home using ..\
As long as I use the same folder structure for all companies running my app, even when they only need one instance of my app, meaning there would always be a CompanyX parent folder, this should work. Right?
Thanks,
John