Datasnap.DSCommonServer.DSAdmin.GetConnection

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Datasnap.DSCommonServer.pas
Datasnap.DSCommonServer.hpp
Unit: Datasnap.DSCommonServer
Parent: DSAdmin

Delphi

function GetConnection(const NewConName: string): TDBXConnection;

C++

Data::Dbxcommon::TDBXConnection* __fastcall GetConnection(const System::UnicodeString NewConName);

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.

See Also