<< Click to Display Table of Contents >> Navigation: Apollo VCL Components > Apollo VCL Component Reference > TApolloConnection > TApolloConnection |
The TApolloConnection component provides a link between TApolloTable, TApolloQuery, and TApolloSserverDLL in client applications to the Apollo Database Server application. This connection is established through the IP address (or domain name) and Port number where the server is located.
The TApolloConnection component is also used to connect TApolloQuery to the Apollo SQL add-in to execute SQL queries on local data. The Host, Port, and Active properties are not used when connecting to Apollo SQL with TApolloQuery (with AccessMethod set to amLocal).
The Apollo Database Server and Apollo SQL add-in are sold separately from Apollo VCL. Contact Vista Software or an authorized Apollo dealer for pricing and additional information.
Properties |
Description |
ActiveTApolloConnection_Active |
Sets or breaks a connection with an Apollo Database Server. |
DatabaseNameTApolloConnection_DatabaseName |
Name of the active database name alias. |
Remote server machine's IP address or domain name. |
|
PasswordTApolloConnection_Password |
User's Password. Used with User name to log into remote server. |
Port number of Host to connect to. |
|
User's account name. Used with Password to log into remote server. |
|
VersionTApolloConnection_Version |
Version string for TApolloConnection component. |
|
|
Methods |
Description |
CloseDataSetsTApolloConnection_CloseDataSets |
Closes all TApolloTable components attached to this TApolloConnection. |
Attempts to connect the client to the server at the location specified by the Host and Port properties and fires the OnConnect event. |
|
Returns the most recent connected status, but does not retest the connection. |
|
Deletes the specified file from the remote server. |
|
Disconnect the client from the server. |
|
Returns True if specified file exists on the remote server, False if not. |
|
Returns True if the specified file is in use on the remote server, False if not. |
|
Returns the length of the specified remote file. |
|
Transfers a file (any file) from the remote server to the client. |
|
Transfers a file (any file) from the client to the remote server. |
|
Returns the connection ID for the current User. A single user can have multiple connections to a server. |
|
Returns a pointer to an array of names for the available database aliases on the server at the currently selected Host address and Port number |
|
Returns a TStringList filled with the names of the available database aliases on the server at the currently selected Host address and Port number. |
|
Returns a pointer to an array of table names for the available database aliases in the active database. |
|
Returns a TStringList filled with the names of the available tables on the server in the specified database. |
|
Returns a TStringList filled with the names of currently connected users. |
|
Returns the current date/time of the remote server machine. |
|
Attempts to log in the client using the values specified by the User and Password properties. |
|
Logs the client out of the server, but does not disconnect. |
|
OpenDataSetsTApolloConnection_OpenDataSets |
Opens all TApolloTable components attached to this TApolloConnection. |
Tests the TCP/IP connection to the IP address (or domain name) and Port address |
|
Returns the name of the remote server. |
|
|
|
Events |
Description |
Fires if an error occurs communicating with the server. |
|
Fires when the Login method is called |
|
Fires when the Logout method is called. |
|
Fires as each 8k buffer full of data is read from the server. |
|
Fires as the server processes the SQL expression and prepares the result set. |
|
Fires as status messages are sent from the server to the client. |
|
Fires as each 8k buffer full of data is written to the server. |