Datasnap.DSCommonServer.DSAdmin.GetConnection
Delphi
function GetConnection(const NewConName: string): TDBXConnection;
C++
Data::Dbxcommon::TDBXConnection* __fastcall GetConnection(const System::UnicodeString NewConName);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Datasnap.DSCommonServer.pas Datasnap.DSCommonServer.hpp |
Datasnap.DSCommonServer | DSAdmin |
Description
Associates server side database connection with client connection.
This method associates a server side database connection with a client connection.
This provides client access to all database drivers installed on the server. If this method is called from the client, the connection is not actually returned to the client. Instead, all SQL statements and SQL stored procedures called by the client are executed against this connection.
This connection is closed automatically when the client connection is closed. If this method is called more than once by a single client connection, the secondary invocations close the prior database connection.
The NewConName parameter is the name of the connection.
The method returns a TDBXConnection instance for the named connection.