![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » DBISAM Technical Support » Product Manuals » DBISAM Version 4 Manual for RAD Studio XE8 (Delphi Win64) » Using DBISAM » Opening Databases |
procedure TMyForm.MyDatabaseBeforeConnect(Sender: TObject); var Registry: TRegistry; begin Registry:=TRegistry.Create; try with MyDatabase do begin { Make sure that the DatabaseName is set } DatabaseName:='MyDatabase'; { Now set the Directory property to the value from the registry } Registry.RootKey:=HKEY_LOCAL_MACHINE; if Registry.OpenKey('SOFTWARE/My Application',False) then Directory:=Registry.ReadString('Directory') else ShowMessage('Error reading database information '+ 'from registry'); end; finally Registry.Free; end; end;
Property | Description |
KeepConnection | Controls whether the database connection is kept active even after it is no longer needed. This property has no effect upon a local session, but can result in tremendous performance improvements for a remote session, therefore it defaults to True and should be left as such in most cases. |
KeepTablesOpen | Controls whether the physical tables opened with the database connection are kept open even after they are closed by the application. Setting this property to True can dramatically improve the performance of large SQL scripts and any other operations that involve constantly opening and closing the same tables over and over. |
This web page was last updated on Thursday, November 16, 2023 at 10:39 AM | Privacy Policy![]() © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |