<< Click to Display Table of Contents >> Navigation: Apollo .NET (API Reference) > ApolloConnection Object |
Namespace: Apollo
Used with ApolloTable and SQLTable for connecting to an Apollo Server.
Property |
Description |
Active() As Boolean |
Connect to the database |
ConnID() As Integer (ReadOnly) |
Unique connection id |
GroupName() As String |
Apollo Server group name |
Host() As String |
Host is URL or IP address |
Password() As String |
Password to connect to the Apollo Server |
Port() As Integer |
Port number that the Apollo Server is running on |
ServerName() As String |
Name of the Apollo Server |
User() As String |
User name to log onto the Apollo Server |
Version() As String |
TApolloConnection version #. |
Example
Connecting to local data:
conn.AccessMethod = TAccessMethod.amLocal
conn.DatabaseName = "C:\Apollo\9.0\x86\Data\"
conn.Host = ""
conn.Port = 0
conn.ServerName = ""
conn.GroupName = ""
conn.User = ""
conn.Password = ""
Connecting to an Apollo Server:
conn.AccessMethod = TAccessMethod.amServer
conn.DatabaseName = "SAMPLEDATA"
conn.Host = "127.0.0.1"
conn.Port = 8121
conn.ServerName = "Apollo"
conn.GroupName = "Apollo"
conn.User = "sysdba"
conn.Password = "masterkey"