In running an upgrade app for our software on a client's system, there is a process to check the table structures and build an Alter Table statement to execute on the table for adding/updating structure details.
On this client's system, when the Alter Table statement is executed, an error message of "File Does Not Exist" is encountered. The alter table statement generated to be executed is:
The statement is stored to a variable (per building the command) so it only needs to be executed once when multiple fields are to be added/altered. It is then executed via a macro statement : &lc_altercmd
[ul]
[li]The process for building/executing the alter command is applied to data schemas for up to 13 other modules prior to this particular module/table at issue. In the case of this client, there are three modules.[/li]
[li]We have created a scaled-down, module specific copy of the upgrade app so that it only performs the schema update for the specific module. When that app is executed, no problems are encountered. (though unlikely, this may indicate issue is influenced by something in full app prior to the current module)[/li]
[li]We have copied the client's data set to our system for troubleshooting and when the full application is run on the data, no issue is encountered.[/li]
[li]The upgrade app has been run on multiple client systems without issue.[/li]
[/ul]
The VFP help on the Alter Table command states "ALTER TABLE might rebuild the table by creating a new table header and appending records to the table header".
This may be where the dbf file is 'deleted'.
The client is using an old(er) server. We suspect that the issue is greatly influenced by the (slow/lack of) response by the system while the alter command is executed. It could also be influenced by whatever has been installed on the server per security/configurations etc. (our system person is out of office today, so I can't find out if we have an older server available to test with)
Any suggestion of what else to look at will be helpful.
Phil
On this client's system, when the Alter Table statement is executed, an error message of "File Does Not Exist" is encountered. The alter table statement generated to be executed is:
ALTER TABLE SCH ADD COLUMN PID Char(24) ADD COLUMN SchId Integer
The statement is stored to a variable (per building the command) so it only needs to be executed once when multiple fields are to be added/altered. It is then executed via a macro statement : &lc_altercmd
[ul]
[li]The process for building/executing the alter command is applied to data schemas for up to 13 other modules prior to this particular module/table at issue. In the case of this client, there are three modules.[/li]
[li]We have created a scaled-down, module specific copy of the upgrade app so that it only performs the schema update for the specific module. When that app is executed, no problems are encountered. (though unlikely, this may indicate issue is influenced by something in full app prior to the current module)[/li]
[li]We have copied the client's data set to our system for troubleshooting and when the full application is run on the data, no issue is encountered.[/li]
[li]The upgrade app has been run on multiple client systems without issue.[/li]
[/ul]
The VFP help on the Alter Table command states "ALTER TABLE might rebuild the table by creating a new table header and appending records to the table header".
This may be where the dbf file is 'deleted'.
The client is using an old(er) server. We suspect that the issue is greatly influenced by the (slow/lack of) response by the system while the alter command is executed. It could also be influenced by whatever has been installed on the server per security/configurations etc. (our system person is out of office today, so I can't find out if we have an older server available to test with)
Any suggestion of what else to look at will be helpful.
Phil