User

<< Click to Display Table of Contents >>

Navigation:  Apollo VCL Components > Apollo VCL Component Reference > TApolloConnection > TApolloConnection Properties >

User

Declaration

User: String

Description

The user name. If the User and password properties are not specified when connecting and logging in to the server, no table access will be allowed at all. User names are not case-sensitive. User accounts are set up using the Apollo Server Manager program.

Delphi Example

function TForm1.ConnectToServer( sHost: String ): Boolean;

begin

 ApolloConnection1.Host := sHost; 

 Result := True; 

 try 

         ApolloConnection1.Connect; 

         ApolloConnection1.User := 'SYSDBA';

         ApolloConnection1.Password := 'masterkey'; 

         ApolloConnection1.Login; 

 except 

         ShowMessage( 'Connection failed!' ); 

 end; 

end;

 

See Also

Password, Login, OnLogin, OnLogout