IDAConnectionManager
Overview
The IDAConnectionManager contains methods to create and clear connections.
It can be obtained using a TDAConnectionManager component:
var
aConnManager:IDAConnectionManager;
aConn:IDAConnection;
aADOConn:IDAADOConnection;
begin
aConnManager := Schema.ConnectionManager as IDAConnectionManager;
aConn := aConnManager.NewConnection('Northwind');
if (Supports(aConn, IDAADOConnection, aADOConn)) then
begin
//aADOConn.ProviderName; //extra driver specific functionality
end;
end;
Location
- Unit: uDAServerInterfaces.pas
- Ancestry: IDAConnectionManager
Required Methods
Clear
Clears all connections.
procedure Clear
GetDefaultConnectionName
Gets the default connection name.
function GetDefaultConnectionName: string
NewConnection
Returns a new connection, either from the pool or a freshly created one.
function NewConnection(const aConnectionName: string; OpenConnection: Boolean; const UserID: string; const Password: string): IDAConnection
Parameters:
- aConnectionName: connection's name
- OpenConnection: opens created connection or not.
- UserID: username
- Password: password