|
|
|
|
|
- WLanguage properties that can be used with a connection described programmatically
- Oracle Native Connector: external authentication management
- Code equivalents: Description of a connection
- Code equivalents: Opening a connection
- Code equivalence: Assign a connection
- Code equivalence: Modifying an existing connection
Connection (Variable type) In french: Connexion
The Connection type is used to describe one or more connections to external databases (HFSQL Client/Server, Native Connector, etc.). Then, this connection can be opened with HOpenConnection. You can define and change the characteristics of this connection using several WLanguage properties. The Connection variable can also be used to: Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable. MaConnexion is Connection
MaConnexion.Utilisateur = "USER"
MaConnexion.MotDePasse = "PASSWORD"
MaConnexion.Serveur = "MONSERVEUR"
MaConnexion.BaseDeDonnées = "Base de données"
MaConnexion.Provider = hAccessHFClientServer
MaConnexion.Accès = hOReadWrite
MaConnexion.InfosEtendues = "Infos étendues"
MaConnexion.OptionsCurseur = hClientCursor
HOpenConnection(MaConnexion)
HChangeConnection("*", MaConnexion)
Properties WLanguage properties that can be used with a connection described programmatically The properties specific to the connections are presented in the table below: Note: The properties Provider and Server, or Provider and Source must be initialized when describing a connection. | | Property name | Effect |
---|
Access | Allows you to manage the type of access for a connection (HFSQL Client/Server, OLE DB, ...): Read, Read/Write | ActiveDirectory | Used to manage the connection via Active Directory. | Database | Allows you to manage the name of the database associated with a connection (HFSQL Client/Server, OLE DB, ...).In the case of a database divided into schemas, the name of the schema in the database will be specified by HChangeName. | Compression | Allows you to manage the compression of data transmitted by the connection. | Encryption | Allows you to manage the type of encryption for the communication between the Client computers and the HFSQL server. | ExtendedInfo | Allows you to manage the additional information of a connection. | Caption | Allows you to find out and modify the caption of a connection. | Password | Allows you to modify the password associated with the user of a connection. | Name | Allows you to find out the name of the connection | CursorOptions | Allows you to manage the different types of cursors used by the connection. | Provider | Allows you to manage the type of data handled by the connection. | Server | Allows you to manage the name of the server used in the connection. This property is equivalent to the Source property. This property is mainly used for the HFSQL Client/Server connections or for the Native Accesses on the servers.
| Source | Allows you to manage the name of the data source used in the connection. This property is equivalent to the Server property. This property is mainly used for a connection on MS Access or on an xBase file. | CacheSize | Manage cache size | User | Allows you to manage the user of the connection |
Remarks Code equivalents: Description of a connection HDescribeConnection("MaConnexion", "USER", "PASSWORD", "SERVEURTEST", ...
"Base de données", hAccessHFClientServer, hOReadWrite, ...
"Infos étendues", hClientCursor)
Code that uses the connection: MaConnexion is Connection
MaConnexion.Utilisateur = "USER"
MaConnexion.MotDePasse = "PASSWORD"
MaConnexion.Serveur = "SERVEURTEST"
MaConnexion.BaseDeDonnées = "Base de données"
MaConnexion.Provider = hAccessHFClientServer
MaConnexion.Accès = hOReadWrite
MaConnexion.InfosEtendues = "Infos étendues"
MaConnexion.OptionsCurseur = hClientCursor
Code equivalents: Opening a connection HOpenConnection("MaConnexion", "USER", "PASSWORD", "SERVEURTEST", ...
"Base de données", hAccessHFClientServer, hOReadWrite, ...
"Infos étendues", hClientCursor)
Code that uses the connection: MaConnexion is Connection
MaConnexion.Utilisateur = "USER"
MaConnexion.MotDePasse = "PASSWORD"
MaConnexion.Serveur = "SERVEURTEST"
MaConnexion.BaseDeDonnées = "Base de données"
MaConnexion.Provider = hAccessHFClientServer
MaConnexion.Accès = hOReadWrite
MaConnexion.InfosEtendues = "Infos étendues"
MaConnexion.OptionsCurseur = hClientCursor
HOpenConnection(MaConnexion)
Code equivalence: Assign a connection HChangeConnection(CLIENT, MaConnexion)
Code that uses the connection: CLIENT.Connexion = MaConnexion
Code equivalence: Modifying an existing connection HDescribeConnection(MaConnexion, "USER2", "PASSWORD2", MaConnexion.CxBaseDeDonnées, ...
MaConnexion.CxInitialCatalog, ...
MaConnexion.CxProviderOLEDB, MaConnexion.CxAccès, ...
MaConnexion.CxInfosEtendues, MaConnexion.CxOptionsCurseur)
Code that uses the connection:
MaConnexion.Utilisateur = "USER2"
MaConnexion.MotDePasse = "PASSWORD2"
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|