|
|
|
|
|
<Connection variable>.InfoDatabaseProperty (Function) In french: <Variable Connexion>.InfoPropriétéBaseDeDonnées
Available only with this kind of connection
Used to find out the properties of a database on an HFSQL server.
MyConnection is Connection
MyConnection.OpenConnection()
...
OwnerName is string
OwnerName = MyConnection.InfoDatabaseProperty(hOwner, "MyDatabase")
IF OwnerName <> "" THEN
Trace("Owner of the database: " + OwnerName)
END
Syntax
<Result> = <Connection>.InfoDatabaseProperty(<Property> , <Database>)
<Result>: Character string - Value of requested property,
- Empty string ("") if an error occurred.
<Connection>: Connection variable Name of the Connection variable that describes the connection for which a property value is requested. <Property>: Integer constant Property to get from the database: | | hApplication | Name of the application from which the database was created. If this constant is used, <Result> is a character string with the following format: <Executable name>(<Project name>). | hComputer | Name of the computer from which the element was created. If this constant is used, <Result> has the following format: <Name of client computer> + TAB + <IP Address of client computer>. | hCreator | Name of the database creator. This information has no influence. If this constant is used, <Result> is a character string. | hDate | Creation date of the database. If this constant is used, <Result> is a string in the following format: YYYYMMDDHHmmSSCCC. | hNotes | Database description or any other information associated with the database by <Connection variable>.ModifyDatabaseProperty. If this constant is used, <Result> is a character string. | hOwner | Owner of the database. The owner is the one who owns the database. The owner of a database can be modified by <Connection variable>.ModifyDatabaseProperty. If this constant is used, <Result> is a character string. |
<Database>: Character string Name of the database for which to get the properties. If this parameter corresponds to an empty string (""), the database defined in the connection will be used. A WLanguage error occurs if no database is defined in the connection.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|