![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » DBISAM Technical Support » Product Manuals » DBISAM Version 4 Manual for RAD Studio 10 (C++ Win64) » Using DBISAM » Opening Databases |
void __fastcall TMyForm::MyDatabaseBeforeConnect(TObject *Sender) { TRegistry *Registry=new TRegistry(this); try { // Make sure that the DatabaseName is set MyDatabase->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) { MyDatabase->Directory=Registry->ReadString("Directory"); } else { ShowMessage("Error reading database information "+ "from registry"); } } __finally { delete Registry; } }
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 ? ![]() |