Skip to main content

Choose the default SQL server

The default server is the SQL Server that the program suggests when you create a new file, and that it shows at the bottom of the Home page. You set it in the Connect to Server window. This page also describes how to open an existing database directly from a server.

Before you begin​

  • Know the server name. It is usually the computer name, or the computer name followed by a backslash and the instance name, such as PC01\SQLEXPRESS. You can also use . or localhost for the current computer.
  • Know how to sign in: the current Windows account, or a user name and password defined in SQL Server.
  • The server version must be 2019 or later.

Steps​

Set the default server​

  1. Click File > Home.

    At the bottom of the left part there is a line Default Server followed by the server name, with an icon before it that shows its state. The name is red if the program cannot connect to it, and the reason appears when you point at the icon. If no server is set yet, the name of this computer or the text <Select Server> appears.

  2. Click the server name.

    The Connect to Server window appears.

    The Connect to Server window with the server name and authentication fields

  3. Enter the Server name. Type it or choose it from the list. The list holds the servers you have connected to before from this computer. To search the network for servers, click the search button in the field. The search can take some time, and its results are added to the list.

  4. Choose the Authentication:

    ChoiceWhat it means
    Windows AuthenticationThe program signs in with the Windows account you work with. The User name and Password fields are disabled. This is the usual choice on a network with a Windows domain, or on a single computer.
    SQL Server AuthenticationThe program signs in with an account defined inside SQL Server. Enter the User name and Password of that account.
  5. If you need to change the connection time limits, click Options and edit:

    FieldMeaning
    Login timeThe number of seconds the program waits to establish the connection to the server. The usual value is 20.
    Connection timeThe number of seconds the program waits for the server to answer a request. The usual value is zero, and zero means infinite time.

    Click Reset to put both values back to what was saved before for this server, or to 20 and zero for a new server. Raise the values only if the network is slow.

  6. Click Connect.

    The program tries the connection, then saves the settings of this server and closes the window. While it tries, a progress bar appears and the fields are disabled. If the connection fails, a message appears and the window stays open so you can correct the settings.

Open a database directly from the server​

Use this if you created the database on another computer, lost the description file, or want to open a database the program created earlier that has no shortcut on this computer.

  1. Click File > Home > Open Database. The button does not show in the subscription edition.

    The Open Database window appears.

  2. The default server appears in Server name. Change it by choosing a server from the list, which holds this server and the servers the program finds on the network. You cannot type in the field. Or click the server button beside the field to open the Connect to Server window.

  3. Open the Database list and choose a database. The list is disabled when the program cannot connect to the server.

    The list shows the databases the program created on this server and your account may access. Each database shows its descriptive name in bold, with its name on the server below. If there is none, the message "You do not have access to any database on the server '...'." appears.

  4. Check the Description File field.

    • If the program finds an .sdf shortcut for this database in the data folder, it shows its path and you cannot change it.
    • If not, it suggests a new file name in the data folder. You can change it by typing or with the browse button. If you choose an existing file with the button, the message "File already exists." appears. Do not type the path of an existing file: the program then opens the database of that file, not the one you chose.
  5. Click Ok. The button works after you choose a database and a description file.

    The program checks the server, creates the description file if it does not exist, and then the login window appears. Continue in Sign in to a company file.

Result​

The new server appears in Default Server. It becomes the suggested server when you create a new file. The program then checks the recent files again: it marks with a warning or error icon any file that needs an update, belongs to a newer version, or has a damaged description file. It also marks a file whose server is not available or whose database is no longer on the server.

When the Connect to Server window is opened from other places, such as the file creation wizard, the Open Database window or the login window, the connection settings of that server are saved, and the default server changes only if you have no default server yet. The window can also appear at start, because the program cannot reach the server of the only recent file. The server you choose then shows on the Home page until you close the program, but the saved default server does not change.

If something goes wrong​

Message or situationWhy it appearsWhat to do
The Database list is disabledThe program cannot connect to the server in Server name.Click the server button and correct the connection.
Name can't be empty.The Server name field is empty.Enter the server name.
Database Connection FailedThe connection failed: the network, a stopped service, or a wrong server name or credentials.Check the network and that the server is running, correct the name and credentials, then click Connect.
Your Microsoft SQL Server version is not supportedThe server is older than version 2019.Use a server of version 2019 or later.
You do not have access to any database on the server '...'.The server has no database created by the program that you may access.Ask the SQL Server administrator to grant you access, or choose another server.
Data directory not foundThe default data folder does not exist. Its path appears under the message.Create the folder, or reinstall the program.
File already exists.You chose an existing file with the browse button.Choose a new name. To open an existing description file, use Open File on the Home page.

This page applies to alameen ERP 10, version 10.1.79.764.