Create a new file and transfer data
This maintenance creates a new empty company file on the same SQL Server and transfers the data of the current file into it. The program describes its use as being for a problem in the database of the current file. The current file stays unchanged. The details of each page and field are in Create New File.
Before you begin
- Ask the other users to leave the file. If more than one other connection to the database of the file is open when you click Start, the program refuses to continue; one other connection does not stop it.
- Make sure the file is not linked to the replication system, the profit centers system or the HR system. Otherwise the maintenance cannot be applied.
- Prepare a descriptive name for the new file, and a location for the description file in a folder that does not exist.
- You need the Files Maintenance permission, which guards the Files Maintenance window (Run files maintenance). The item does not show if the file works in multi-file mode.
- The scheduled tasks of the current file are not transferred. Note their settings so that you can create them in the new file.
- Allow a long time for a large file, and do not turn off the computer during the operation.
Steps
-
Click File, then Tools, then the large part of the Files Maintenance button. If a message asks you to close the open windows, click Yes.
-
In the list, click Create new file and transfer data, then click Run.
-
On the backup page, choose how to take the backup, then complete the pages that follow as in Make a backup. You can choose not to take a backup, but the wizard asks for nothing else before it transfers the data.
-
On the Create New File page, read the note, change Descriptive Name and New Database Name if you want, then click Next.
-
On the location page, leave Default Location, or choose Selected Location and type the path or click Browse.... The folder must not exist, and the program does not check the path you type yourself on Next. Click Next.
-
Click Start. The program does not ask for confirmation before it starts, and Cancel is disabled during the run. The stages follow one another in the list.
-
If "Warning: the scheduled tasks will not be transferred from current file to the new one" appears, click OK. Then click OK at "Operation successfully completed".
-
Open the new file from the recent files list on the Home page, under its descriptive name, and sign in to it as you do with any file.
-
Click Close in the Files Maintenance window so that the program releases the current file.
Result
A new file exists on the server. It holds a copy of the content of all the tables of the current file and the values of its custom fields. In it the program recalculates the balances and prices of materials and the balances of accounts, and shrinks its size. The current file stays open and unchanged. The stages are explained in What the operation does.
If something goes wrong
| Message | Why it appears | What to do |
|---|---|---|
| Database is Opened By Users : | More than one other connection to the database of the file exists. The names listed are SQL Server logins. | Ask them to leave, and run it again. |
| The file is linked to another system | The file is linked to the replication system, profit centers or HR. | The maintenance cannot be applied to this file. |
| The selected folder already exists … | The folder you chose exists. | Choose the name of a folder that does not exist. |
| An error was encountered while performing the operation. | A stage failed after the new database was created. The program does not delete the database it created. | Read the message before it and try again. If the error repeats, contact technical support. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.