Skip to main content

Check the physical structure of the file

This wizard checks the database tables of the file themselves, not your accounting data. Run it when SQL Server complains about damage, after a power cut during work, or when technical support asks for it.

Before you begin​

  • Check the general conditions in Run files maintenance: the Files Maintenance permission, and an open file that does not work in multiple files mode.
  • Ask the other users to leave the file. During the check the program cuts their connection to the database and cancels their unfinished transactions.
  • Take a backup. The wizard shows the backup page first.
  • Start with the Without Repair (view report of existing errors) option. Do not choose Fix and Allow Data Loss unless technical support tells you to.

Steps​

  1. Click File, then Tools, then Files Maintenance. Select Check File's Physical Structure and click Execute (details).
  2. On the Make a Backup page choose the backup type and click Next, and finish the backup as in Make a backup.
  3. On the options page choose Without Repair (view report of existing errors), then click Next.
  4. Click Start. The program puts the database in single-user mode and checks it, and the bar advances in three steps. You cannot stop the check, and it can be long with large files.
  5. At the message "Operation successfully completed" the wizard ends. If no error window appeared and no new rows were added to a window that was already open, the check found no damage.
  6. If an error window appeared, keep the text of the rows and contact technical support before you choose any repair option. The messages come from SQL Server and are described in Error window.
  7. If technical support decides to repair, repeat the steps with the option they name: Fast Repair, Fix and Rebuild or Fix and Allow Data Loss, after a new backup.
  8. Click Close in the Files Maintenance window so that other users can sign in.

Result​

With the first option the data of the file does not change. With the other options SQL Server performs on the database tables the repair that the option names. In every case the program puts the database back in multi-user mode at the end, and the check and its errors are recorded in the maintenance log of the file.

If something goes wrong​

MessageWhy it appearsWhat to do
Unable to set single user mode on database: …The database could not be put in single-user mode, so the check did not start.Read the error lines under the message, make sure nobody uses the database from outside the program, and try again.
Unable to reset single user mode on database: …The check ended and the database could not be put back in multi-user mode.Ask the SQL Server administrator to return the database to multi-user mode before anyone signs in.
An error was encountered while performing the operation.It follows one of the two messages above.Review the message before it.

All messages and options are in Check File's Physical Structure.

This page applies to alameen ERP 10, version 10.1.79.764.