RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDatabase.SessionAlias Property

Specifies whether a database component is using a session alias.

Pascal
property SessionAlias: Boolean;
C++
__property Boolean SessionAlias;

Examine SessionAlias to see if a database component is using a session alias. If SessionAlias is true, a session alias is in use. If false, a session alias is not in use. 

A session alias is automatically created for a database component if it 

Uses the DriverName and Params properties instead of the AliasName property, and the Params property contains any parameters. 

Overrides Params values supplied by a BDE alias in AliasName

A session alias may also be created if an application permits the user to log into a server using a different user name than the one specified in the Params property. 

A session alias exists only while the application is running. It is not stored in the BDE configuration file, and cannot be accessed from outside the application. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!