The usermanager dialog is once created and then held in memory by main.pas, not by childwin.pas. Move preparing hints from FormCreate to FormShow to ensure the SHOW VARIABLES part is executed on the relevant server connection.