Contents

    Executing SQL on the database

    Your task/initial situation

    You want to execute an SQL command for your JTL-Wawi database. In the following paragraphs, we will explain how to download and set up the programs Microsoft SQL Server Management Studio and Heidi SQL. Afterwards you will be able to issue SQL commands and saved procedures (which have been provided to you by our support team via the JTL-Forum, for example).

    SQL Server Management Studio

    1. Download the SQL Server Management Studio: Go to the Microsoft website: Download Management Studio
    2. Look up the name of the server in the Datenbankverwaltung (Database administration).
    1. Start the SQL Server Management Studio. Enter the SQL server under Server name and then click Connect.
    1. After you have logged in, open the Databases directory in the Object Explorer on the left. Select the eazybusiness entry and then click New Query.
    1. The editor opens. Enter an SQL command. Then click on Execute at the top of the screen.
    Attention: Important technical note! If you want to execute the query for several tenants, repeat the steps starting from Step 4 and select the respective tenant database instead of the eazybusiness database.

    Heidi SQL

    1. Download the Heidi Installer and install the tool: Heid SQL Website: Download tool
    1. Look up the name of the server in the Datenbankverwaltung (Database administration).
    2. Start Heidi SQL and click Neu (New). Adjust the following settings on the right-hand side:
    • Verbindungstyp (Network type): Microsoft SQL Server (named pipe)
    • Hostname/IP: Servername\JTLWAWI
    • Benutzername/Passwort (Username/password): sa/*******
    • Datenbanken (Databases): Enter the name of your database, e.g. eazybusiness.
    1. Click Öffnen (Open).
    1. Select the “eazybusiness” database. Then click Abfrage (Query) and enter the desired SQL query into the editor. Then click on the arrow to run the query (see screenshot).
    Attention: Important technical note! If you want to execute the query for several tenants, repeat the steps starting from Step 4 and select the respective tenant database instead of the eazybusiness database.