![]() | LoginProducts Sales Support Downloads About |
| Home » Technical Support » ElevateDB Technical Support » Product Manuals » ElevateDB Version 2 Manual for Delphi 5 » Using ElevateDB » Connecting Sessions |
Connecting SessionsUser: Administrator (case-insensitive) Password: EDBDefault (case-sensitive)
192.168.0.1 ElevateDBServer
ElevateDBServer 12010/tcp
Any version of ElevateDB for Delphi 6 or higher (including C++Builder 6 and higher) requires that you include the DBLogDlg unit in your uses clause in order to enable the display of a default login dialog. This is done to allow for ElevateDB to be included in applications without linking in the Forms unit, which can add a lot of unnecessary overhead and also cause unwanted references to user interface libraries. This is not required for Delphi 5 or C++Builder 5 since these versions always included the Forms unit.procedure TMyForm.MySessionBeforeConnect(Sender: TObject);
var
Registry: TRegistry;
begin
Registry:=TRegistry.Create;
try
Registry.RootKey:=HKEY_LOCAL_MACHINE;
if Registry.OpenKey('SOFTWARE/My Application',False) then
begin
if Registry.ReadBool('IsRemote') then
begin
with MySession do
begin
SessionType:=stRemote;
RemoteAddress:=Registry.ReadString('RemoteAddress');
RemotePort:=Registry.ReadString('RemotePort');
end;
end
else
MySession.SessionType:=stLocal;
end
else
ShowMessage('Error reading connection information '+
'from the registry');
finally
Registry.Free;
end;
end;
You should not call the session's Open method or toggle the Active property from within this event handler. Doing so can cause infinite recursion.| Property | Description |
| ForceBufferFlush | Controls whether the session will automatically force the operating system to flush data to disk after every write operation completed by ElevateDB. Please see the Buffering and Caching topic for more information. The default value is False. |
| RecordLockProtocol | Controls whether the session will use a pessimistic or optimistic locking model when editing rows via navigational or SQL methods. Please see the Locking and Concurrency topic for more information. The default value is lpPessimistic. |
| RecordLockRetryCount | Controls the number of times that the engine will retry a row lock before raising an exception. This property is used in conjunction with the RecordLockWaitTime property. The default value is 15 retries. |
| RecordLockWaitTime | Controls the amount of time, in milliseconds, that the engine will wait in-between row lock attempts. This property is used in conjuction with the RecordLockRetryCount property. The default value is 100 milliseconds. |
| RecordChangeDetection | Controls whether the session will detect changes to a row during editing or deletion and issue an error if the row has changed since it was last cached. Please see the Change Detection topic for more information. The default value is False. |
| KeepConnections | Controls whether temporary TEDBDatabase components are kept connected even after they are no longer needed. This property has no obvious 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 within the session are kept open even after they are no longer being used by the application. Setting this property to True can dramatically improve the performance of SQL statements and any other operations that involve constantly opening and closing the same tables over and over. |
| ProgressTimeInterval | Controls the amount of time, in milliseconds, that must elapse between progress updates before ElevateDB will generate a progress event. The default value is 1000 milliseconds, or 1 second. |
| ExcludeFromLicensedSessions | Specifies whether the current session should be included in the session license count controlled by the TEDBEngine LicensedSessions property for local sessions, or by the ElevateDB Server for remote sessions. This is useful for situations where you have a utility session that you want to exclude from your own licensing restrictions, such as when a session is used in a thread for performance reasons. This property does not cause the session to be excluded from the ElevateDB licensed session count and only affects the user-defined licensed session count. |
You cannot modify any of the above properties unless the session is disconnected. Attempting to modify these properties while the session is connected will result in an exception being raised.| This web page was last updated on Saturday, September 4, 2010 at 01:06 PM Valid HTML 4.01 Valid CSS | Privacy Policy Site Map© 2010 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |


