|
|
|
|
|
- Overview
- Conversion in the data model editor
- Conversion in the HFSQL Control Center
- Note
Converting an HFSQL Classic database into HFSQL Client/Server
 Available only with these kinds of connection
To convert an HFSQL Classic database into an HFSQL Client/Server database, WINDEV, WEBDEV and WINDEV Mobile propose two methods: - Use the data model editor to directly modify the type of data files: from HFSQL Classic (data file in a directory) to HFSQL Client/Server (connection to an HFSQL server).
- Use the HFSQL Control Center to directly convert an HFSQL Classic database to HFSQL Client/Server.
Conversion in the data model editor To convert an HFSQL Classic database into an HFSQL Client/Server database: - Load the project and open the analysis containing the data files to convert.
- Select a data file to convert in the data model editor.
- In the context menu, select "Data file description".
- In the window that appears, change the file type: select "HFSQL Client/Server".
- The wizard for creating a connection starts.
- Enter the name of the HFSQL server or its IP address.
- Enter the username and password (the first time you log in, enter "Admin" and leave the password empty).
- Choose or enter the name of the database to which the current data file will be copied.
- The connection is created.
- The wizard proposes to associate the created connection with other data files found in the analysis. By default, all the data files are selected. You can uncheck those you do not want to convert.
- The wizard proposes to copy the data files onto the HFSQL server.
Once the operation is complete, the data files in HFSQL C/S mode appear in yellow in the data model editor. Conversion in the HFSQL Control Center To convert an HFSQL Classic database into an HFSQL Client/Server database: - Open the HFSQL Control Center.
- Connect to an existing HFSQL server ("Admin" user without password by default).
- Select the server. In the server characteristics pane, in the "Database" group, click "Import an HFSQL Classic database".
- The import wizard starts.
- Specify the directory where your HFSQL Classic data files are located.
- Enter the name of a target database or click the "New" button to create a new database.
- Localize the analysis (which means the description of data files to convert). This step is optional but it allows you to retrieve the description of links and integrity rules between data files.
- Check the list of data files to convert and start the conversion.
- The "Connection code" is used to retrieve, via the clipboard, the code for connecting to the HFSQL Client/Server database. For example:
HDescribeConnection("HyperFileCS", "admin", "<password>", ... "localhost:4900", "CRMDATABASE", hAccessHFClientServer) HChangeConnection("*", "HyperFileCS")
Note: Data file names remain unchanged during conversion. Once the database is converted, don't forget to include the connection code in the existing project in order to change the type of connection programmatically. For example, the connection code can be copied into the project code. Example of connection code: ConnectionName is Connection
ConnectionName.Provider = hAccessHFClientServer
ConnectionName.User = "UserName"
ConnectionName.Password = "Password"
ConnectionName.Server = "Myserver:port"
ConnectionName.Database = "MyDatabase"
ConnectionName.Encryption = hEncryptionNO
HOpenConnection(ConnectionName)
HChangeConnection("*", ConnectionName)
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|