Skip to main content

Compare Files

This window compares the structure of the database of the open file with the structure of the database of another file on the same SQL Server, and shows the differences in a report: tables, fields, triggers and indexes. It compares structure only, not your data. The steps for using it are in Compare two files.

Opening the window​

  • Click File > Tools > Compare Files. This is a button on the Tools page, not an item of the Files Maintenance list.
  • The button shows when a file is open and the key includes a special feature that not all keys include (File: tools and import and export). In the subscription edition it needs the highest plan.
  • It has a permission named Compare Files on the Operations page of Users Management.
  • The window shows no backup page, because it changes nothing in the file.

The window​

FieldDescriptionRequiredValues and rules
Select file to compare withThe list of the files that the current file can be compared with.NoIt holds every alameen file on the same server that is online, is not the current file and has a recorded accounting period. Each file shows by its descriptive name, in order of the start of its period, then its end. The first file is selected when the window opens, and the program does not check the list when you click Preview or Print.
ButtonWhat it does
Preview (Alt + P)Compares and shows the report on the screen.
Print (Alt + R)Compares and prints the report. You need the print permission, otherwise "You don't have the authority to print" appears. Hold Shift to print without the printer selection window.
CancelCloses the window.

The report opens in the usual print preview (Native print preview).

The differences report​

The title of the report is "Compare Files". The table has two columns in its header: "Current Files (database version) database name" and "Compared Files (database version) database name". Each difference row puts what the current file has in the first column and what the compared file has in the second, and writes "Not found" on the side that lacks the item.

The report writes the following sections in this order, and it does not write a section that has no difference. A line with the section title in bold comes before each section.

SectionWhat it shows
Different TablesTables that exist in only one of the two files. The table name is on the side of the file that has it.
Missing FieldsFields that exist in only one of the files, in tables that exist in both. They show by table name, field name and type.
Different FieldsA field that exists in both files with a different type or length. It shows on each side by table, field, type and length.
Missing TriggersA trigger (a procedure that runs by itself when a table changes) that exists in only one of the files. It shows by table name and trigger name, followed in parentheses by its state Active if it is active.
Different TriggersA trigger that exists in both files with a different state. The state shows on each side.
Missing IndexesAn index on a table and its columns that has no index on the same columns in the other file. It shows by table name, index name and its columns, and its type CLUSTERED or NON-CLUSTERED.
Different IndexesAn index on the same columns in both files that differs in being unique. It shows its type and UNIQE or NON-UNIQE on each side.

The names of tables, fields and indexes show as they are in the database, in English letters.

Messages​

MessageWhy it appearsWhat to do
There is no difference between the databasesThe two files have the same structure.No preview shows.
You don't have the authority to printYou clicked Print and you lack the print permission.Ask the file administrator for the permission.
Error In Stored Proc: ...The comparison command failed in SQL Server. The message is in English and is followed by the text of the command.Check that the compared file is available on the server and try again.

This page applies to alameen ERP 10, version 10.1.79.764.