The
CtUserName property is used to set the username that will be used when connecting to a specific table via OLE DB. You can:
- Get the username that will be used for connecting to a table via OLE DB (name used in HConnect). This property can be used for a data file defined in the data model editor or through programming.
- Define the username that will be used for connecting to a table by OLE DB (when the data file is described through programming). In this case, this property is equivalent to the CtDescribedUserName property.
Reminder:
HConnect is used to redefine one or more parameters of the OLE DB connection to a table. By default, the characteristics of the OLE DB connection are defined:
- in the data model editor during the description of the data file,
- when the data file was described through programming.
// Define the name of the user
Customer.CtUserName = "Julia"
...
// Validate the data file description
HDescribeFile(Customer)
Syntax
Finding out the name of the user (used in HConnect) Hide the details
<User> = <Data file>.CtUserName
<User>: Character string
Name of the user of the OLE DB source defined during the connection by HConnect.
<Data file>: Character string
Name of the data file used. This name was defined in the data model editor or with the File Description type.
Defining the name of the user (used in HConnect) Hide the details
<Data file>.CtUserName = <New username>
<Data file>: Character string
Name of the data file used. This name was defined by the File Description type.
<New username>: Character string
Name of the user of the OLE DB source defined during the connection by HConnect.
Remarks
The
CtDescribedUserName property is used to get and change the name of the user specified for the OLE DB connection when describing the data file.