RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DSAdmin.GetConnection Method

Associates server side database connection with client connection.

Pascal
function GetConnection(const NewConName: UnicodeString): TDBXConnection;
C++
__fastcall TDBXConnection GetConnection(const UnicodeString NewConName);

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. 

 

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