Create a new company file
A company file is a database on a SQL Server that holds a company's accounts, materials and transactions. You create it with the Create a new file wizard, where you choose the template, server, database name, first user, currency and opening date. You do this once for each company.
Before you begin
- You need Microsoft SQL Server 2019 or later, running and reachable from this computer. Your account on the server must be allowed to create databases.
- If you have no valid default server, the Connect to Server window opens when the wizard starts. See Choose the default SQL server.
- If the server has a program system administrator, have its name and password ready. The wizard asks for them before it creates the file.
- Decide in advance: the descriptive name of the file, the name and password of the first user, the opening date and the basic currency.
- If windows are open, the program asks to close them. With No the wizard does not start. An open file stays open until you click Start.
- An internet connection is optional. The wizard needs it only to list extra templates.
The user you define in the wizard has all permissions. If you forget the password you cannot open the file. Choose a password you remember, and give permissions to other users later from inside the program.
Steps
Start the wizard
-
Click File > Home > Create a new file.
If the recent files list has no files, the wizard opens by itself when the program starts.
-
On the Welcome to Creating Files Wizard page, read the information and click Next.
The program starts downloading extra templates from the internet in the background.

Choose the template
-
On the Select Creation Template page, choose a template from the list. Next stays disabled until you choose one.
Choice What it means Default template Comes with the program. It has a chart of accounts based on the periodic inventory system, standard entry, commercial paper, transposition and bill types, and tiles on the desktop. Choose it to start a new company. A template from the internet Extra templates offered by the company. They appear below the local template once their list is loaded. Select one to read its description. The description of the selected template appears beside the list. To search the templates, type in the search box or press Ctrl+F.
If an error about downloading templates appears, click Retry, or continue with the local template.

-
Click Next.
Set the shortcut location
The shortcut is a small file with the extension .sdf. It holds the server name, the database name and the descriptive name. You open the company through it. The program keeps no accounting data in it: all the data is in the database on the server.
-
On the Select Shortcut Location page, choose one of two options:
Choice What it means Auto Location The program puts the shortcut in your Documents folder: Documents\Al-Ameen\10.0\data\data00\data.sdf. The number in the folder name is the first unused one. Choose it if you have no special need.Custom You pick a path and a file name with the browse button. Choose it to place the shortcut on a shared drive or in a folder you back up. The program creates the folder if it does not exist. -
Click Next.
-
On the Files Location Notes page, read the note, tick "I understand how data is stored within the SQL Files and the significance of the shortcut.", and click Next. The button stays disabled until you tick the box.
noteBacking up the shortcut file alone does not save the company data. Back up the database itself. See Back up a company file.
Name the file and define the first user
-
On the Enter File Description page, enter the Descriptive Name, for example
Alwaha Trading 2026. This name appears in the recent files list and in program windows. You can use any text up to 100 characters.The suggested value is "Company Files" followed by the current year, or by the next year if it is December. If you leave it empty, the program does not let you continue.
-
Click Next, and on the Enter User Name page enter:
Field What to enter User name The name of the first user. The suggestion is Manager(or the Arabic equivalent in an Arabic interface). The program does not accept an empty name.Password The password of this user. You can leave it empty, but it is better to set one. Confirm password Type the same password again. If they differ, an error icon appears beside the field with the hint "Passwords do not match.", and Next stays disabled. The wizard does not check how strong the password is. At sign-in the program may ask for a new password if password rules are enabled in the file options. See Sign in to a company file.
-
Click Next.
The program connects to the suggested server, checks it and suggests a database name. If it cannot connect, the message "Database Connection Failed" appears. Click Yes to retry after one second, or No to open the Connect to Server window and choose another server. If the server has no helper database named
AmnConfig, the program creates it now. Do not delete it.
Choose the server and the database
-
On the Set SQL Server and Database page, set:
Field What to enter Server name Choose the server from the list. The list holds the servers you have connected to from this computer. To add a new server, click the server button beside the field. When you change the server, the program checks it and suggests a new database name. Database Name The name the database will have on the server. The suggestion is AmnDbwith the number after the last one registered on the server, for exampleAmnDb001for the first file. You can change it to a name you choose.The name must be new. If a database with the same name exists on the server, the program refuses it, even if that database is empty.
-
Click Next.
-
If the server has a program system administrator, the System Administrator Password page appears. Enter the System administrator name and the Password, then click Next.
A system administrator is defined at the server level. This person can restore a backup on the database even when the file is not open, and can update files from an old version to a newer one. If the server has no system administrator, this page does not appear.

Set the date, the currency and the log file
-
On the Opening Date page, choose the Opening Date. The suggestion is the first day of the current year, for example
1-1-2026. This is the date of the first transaction in the file, and the program does not accept a transaction dated earlier. The program sets the ending date of the period to the end of the year that contains this date. You can change the dates later in Program Options. Click Next. -
On the Enter Basic Currency page, choose the Currency Name from the list. Type the beginning of the name to search. The other currency data is read-only:
Field Meaning Currency Part Name The name of the smaller unit, such as "halala". Latin Name and Latin Part Name The names of the currency and its part in English. Currency Code The international currency code, such as SAR."Every 1 ... =" The number of parts in one unit: 10, 100 or 1000. The suggested currency is the currency of the country in the Windows regional settings. If there is none, the first currency of the list is suggested. The exchange rate of this currency is one. Add other currencies later. See Currencies and exchange differences. Click Next.
-
On the Log File Options page, choose the options below and click Next:
Option Meaning Activate log file The program records the edit operations users make, such as add, modify and delete. On by default. Save changes details in log file The program saves the details of each operation before and after the change. On by default. It is disabled if you turn off the first option. We recommend leaving both on. They help you find out who changed what.
Check and create the file
-
On the Summary page, review your choices:
Item What it does Creation Template Display only. Descriptive Name and User name Editable fields. Password Click the text "Password is defined" or "No password found" to open the Change Password window. Shortcut Location Display. To change it, go back with Back to Select Shortcut Location. Database Click the text "database on server" to open the window that sets the server and database. Opening Date and Currency Editable. Log File The two options from the previous page. Use simplified mode when creating files See the section after the table. If the descriptive name is empty, the message "The field 'Descriptive Name' is required. Please enter an appropriate value." appears.

-
Click Next, then on the Files Creation page click Start. To go back, click Back.
A progress bar and a line of text show the current stage. Do not close the program until it finishes. You cannot cancel once it has started.
You can cancel before you click Start by clicking Cancel or pressing Esc. The program asks: "Are you sure you want to cancel creating files operation?".
Simplified mode
If you tick Use simplified mode when creating files on the Summary page, the wizard opens next time directly on the Select Creation Template page. After you choose a template and click Next, it goes to Summary with the suggested values: a new database name on the default server, the suggested user without a password, the start of the current year, and your country's currency. Change what you need on the Summary page. If the Database item shows "No database selected", choose the database from the link in that item. The system administrator password is not requested in this mode. Clear the option on the Summary page to return to the full wizard.
Result
After you click Start, the program runs these stages in order and shows each in the progress window:
- It closes the open file, if any.
- It creates the database on the server with the name you chose. It registers your database in the helper database
AmnConfig, which the program already created in step 10 if it was missing. Do not delete it. - It creates the shortcut folder, then the tables, indexes, relations and stored procedures.
- It creates the
.sdfshortcut file. - It defines the first user with all permissions, and saves the descriptive name, the opening date, the two log file options and the first day of the week from the Windows settings.
- It adds the basic currency and makes it the default currency.
- It applies the template: the chart of accounts, the entry and bill types and more, and the desktop dashboards. It also adds a dashboard named Web with tiles for downloads, the blog and YouTube.
- It signs you in automatically as the user you defined, and adds the file to the recent files list.
The wizard then closes, the File tab closes and the desktop appears. A warning about the SQL Server version or about the demo version may appear. See Sign in to a company file.
If something goes wrong
| Message | Why it appears | What to do |
|---|---|---|
| All opened windows must be closed before performing this operation. Are you sure you want to do this? | Windows were open when the wizard started. | Click Yes to close them, or No and the wizard does not start. |
| No creation templates found. | There is no template in the templates folder. | Reinstall or repair the program. The wizard does not start without a template. |
| The file doesn't exist | The definition file that holds the currency list and suggested values is missing from the program folder. Its path appears under the message. | Reinstall or repair the program. |
| Database Connection Failed | The program cannot reach the server: the network, a stopped service, or a wrong server name or credentials. | Check the network and that the server is running. Click Yes to retry, or No to change the server. |
| Your Microsoft SQL Server version is not supported | The server version is older than 2019. | Use a server of version 2019 or later. |
| Name can't be empty. | The Server name field is empty. | Choose a server. |
| Database name can't be empty. | The Database Name field is empty. | Enter a name. |
| There is an existing Database with the same name | A database with this name exists on the server. | Enter a different name. |
| No such user or group | The system administrator name is wrong. | Enter the system administrator name defined on the server. |
| Invalid password | The system administrator password is wrong. | Type it again. |
| Error downloading templates from the Internet | The internet or the template service cannot be reached. | Click Retry, or use the local template. |
| The creation template could not be loaded. Please try again later. | The template you chose could not be downloaded when you clicked Start. | Try again later, or choose a local template. |
| Cannot create the file to: | The shortcut folder could not be created. | Choose a location where you can write. |
| The database file already exists... | An old database file with the same name is left on the server disk. | Delete the old database files from the SQL Server data folder if you no longer need them, or choose another name. |
| Error while creating the database | The server refused to create the database, usually for missing permissions. | Ask the SQL Server administrator to allow you to create databases. |
| Error while creating configuration database | The helper database AmnConfig could not be created or opened. | The same causes: permissions or the server. |
| The specified template file is invalid. | The template file is damaged or in an unknown format. "The file will be created according to the default template." appears under it. | The file is created and you are signed in, but it may lack the template content. Open the chart of accounts and check it. If it is empty, create a new file with another template. |
| An error occurred while applying the specified template. | Part of the template could not be applied. "The default template will be applied." appears under it. | Check the accounts and types in the new file, and add what is missing by hand. |
| Are you sure you want to cancel creating files operation? | You clicked Cancel or pressed Esc before Start. | Click Yes to cancel, or No to continue. |
After any error once you click Start, the wizard closes and you start again. If the process stops with an error after the database was created, the database may stay on the server. Delete it with the SQL Server tools before you retry with the same name.
Related
- Sign in to a company file
- Choose the default SQL server
- Install the demo and open a company file
- Create a new file wizard: every page and field of the wizard
- File tab: Home
- Back up a company file
This page applies to alameen ERP 10, version 10.1.79.764.