Hello,
I've got the following problem.
I've got a procedure that connects and disconnects databases required to compile files.
I've got a procedure that compiles files.
I run these as follows (more or less):
The problem: When a disconnect is used in conectdbsforfile it has no effect. The compilefile procedure gives errors because the databases disconnected in the connectdbsforfile.p procedure are still connected. Has anyone got an explanation and/or sollution for this problem? There are no transactions or anything else on the databases. The only thing we do is compile files that use the databases that have been connected. We do not run any procedure that requires the databases.
Kind regards,
Jan
I've got the following problem.
I've got a procedure that connects and disconnects databases required to compile files.
I've got a procedure that compiles files.
I run these as follows (more or less):
Code:
for each ttfile no-lock:
run connectdbsforfile.p (ttfile.filepath).
run compilefile.p (ttfile.filepath).
end.
The problem: When a disconnect is used in conectdbsforfile it has no effect. The compilefile procedure gives errors because the databases disconnected in the connectdbsforfile.p procedure are still connected. Has anyone got an explanation and/or sollution for this problem? There are no transactions or anything else on the databases. The only thing we do is compile files that use the databases that have been connected. We do not run any procedure that requires the databases.
Kind regards,
Jan