Method DacSession():getDefault() Professional
Retrieves the default DacSession object of the current thread.
:getDefault() --> oSession|NIL
The method returns the DacSession object defined as the default session of the current thread. If no default session is defined, the return value is NIL.
Connections to more than one server can be established in an application using multiple instances of the DacSession class. In this case, one of the DacSession objects should be defined as the default session which handles the communication with the server. This object forwards requests for database operations those created by commands such as USE database and DbCreate() for example, to the server it is connected to. The method :getDefault() returns the default DacSession object defined for the current thread. The method :setDefault() can be used to change the default session.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.