You can modify your shutdown code to loop through all open data sessions and close everything. Look up ASESSIONS() in help.
>Hmmm... I think all my tables are closed after quit app.
>Is there any way to find who is connected to database? Or maybe to "unlock" database without restart server?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer