|
|
|
|
|
Database (Property) In french: BaseDeDonnées
 Not available with these kinds of connection
The Database property is used to manage databases associated with a connection (HFSQL Client/Server, OLE DB, etc.). You can: - Identify the database associated with a connection (HFSQL Client/Server, OLE DB, etc.).
- Define the database associated with a connection (HFSQL Client/Server, OLE DB, etc.). In this case, when you open a file that uses an open connection, that connection will be closed and reopened with the new parameters.
Note: The connection can correspond:
MyConnection is Connection
MyConnection.User = "USER"
MyConnection.Password = "PASSWORD"
MyConnection.Server = "MYSERVER"
MyConnection.Database = "Test"
MyConnection.Provider = hAccessHFClientServer
MyConnection.Access = hOReadWrite
MyConnection.ExtendedInfo = "Extended information"
MyConnection.CursorOptions = hClientCursor
HOpenConnection(MyConnection)
Syntax
Identifying the database associated with a connection Hide the details
<Associated database> = <Connection>.Database
<Associated database>: Character string - Database used as data source for the connection.
- Empty string ("") if no specific database is associated with the connection.
<Connection>: Name or variable of type Connection Name of the connection used. This name is defined: Remarks The CtInitialCatalog property gets the default database of a connection. This property is kept for backward compatibility. It is recommended to use the Database property.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|