Contents

    Database FAQ

    General

    What are the default passwords?

    SQL server/database

    Default username: sa

    Default password that is assigned during the installation of the SQL server via the installation routine in JTL-Wawi: sa04jT14

    The database password is needed during the import of a backup file.

    Important: We strongly recommend changing the password for the database admin. Read more on this topic: Adjusting the sa password.

    JTL-Wawi

    The username is admin and the password is pass.

    Wenn Ihnen die Logindaten für Ihr JTL-Wawi Admin-Login nicht mehr vorliegen, können Sie diese Logindaten über die Kommandozeile der Datenbank neu setzen:

    Open the command line via START > Ausführen (START > Run). Type cmd.exe and confirm your entry with Enter.

    In the next window, enter the following command for JTL-Wawi:

    osql -S (local)\JTLWAWI -U sa -P sa04jT14 -d eazybusiness -Q "UPDATE tBenutzer SET cPasswort=master.dbo.fn_varbintohexsubstring(0, HASHBYTES('SHA1', CONVERT(varchar(255), iSalt)+'JTL'+'NEUES PASSWORT'), 1, 0) WHERE cLogin='admin'"
    Please note that you have to replace NEUES PASSWORT (New password) with your own password. The command can only be executed directly on the server but not on the clients.

    You can now log in to the admin account with the new password.

    Can I use mySQL as an SQL server?

    No, mySQL cannot be used with JTL-Wawi. There are some differences between the various data types and SQL commands of MS SQL and mySQL.

    Deinstalling Microsoft SQL Server Express

    A current WinRar version is required! You can obtain it here.

    Select the file SQLEXPR_DEU.exe in the setup folder SQL-Server  by double-clicking and select Entpacken in SQLEXPR_DEU (Extract to SQLEXPR_DEU) (This is a RAR archive). The file will now be extracted. Next, copy the new folder SQLEXPR_DEU to C:\.

    Go to the Command Prompt (Start > Run > »cmd.exe«).
    With the command cd \SQLEXPR_DEU you now switch to the folder with the extracted files.

    You can then remove the SQL server with this setup call:

    start /wait setup.exe /qn REMOVE=All INSTANCENAME=JTLWAWI

    This process may take a few minutes.

    Alternativ kann unter Systemsteuerung – Programme und Funktionen der Microsoft SQL Server deinstalliert werden. Wenn mehrere Instanzen des SQL Servers installiert sind, ist die obere Methode zu empfehlen, da nur so die JTLWAWI-Instanz deinstalliert wird und nicht andere, die von anderen Programmen benötigt werden.

    Settings and workflows

    Connecting to several database servers with one client

    To address several SQL servers with one client, you need to create an individual profile for each SQL server in the JTL-Wawi database administration. During the start of JTL-Wawi, you can choose the profile with the SQL server to which you want to connect.

    Error messages

    Issue with Windows 7/Windows Server 2008 and Internet Explorer 10

    Note: As of JTL-Wawi 1.4, SQL server 2008 will no longer be supported.

    Unter Windows 7 und Windows Server 2008 R2 kann ein Problem mit dem Onlineshop-Abgleich / JTL-Worker in Verbindung mit dem Internet Explorer 10 auftreten. Wenn der Abgleich/Worker nach einiger Zeit blockiert (stehen bleibt), muss dazu ein Fix von Microsoft eingespielt werden.

    Den Hotfix finden Sie unter : http://support.microsoft.com/kb/2465772

    Wenn das Problem nach der Hotfixinstallation weiterhin besteht, hilft nur, Internet Explorer 10 zu deinstallieren. Es reicht hier nicht, Internet Explorer 10 nur zu deaktivieren. Windows 7: Sie gehen unter Systemsteuerung >Programme und Funktionen auf Installierte Updates anzeigen, suchen dann das Update zum Internet Explorer 10 heraus und deinstallieren es. Dies kann unter Umständen einige Zeit in Anspruch nehmen und wir empfehlen, es nicht im laufenden Betrieb durchzuführen.

    JTLwawi.dll or JTLmisc.dll cannot be opened

    If this error is displayed, a DLL file required by JTL-Wawi could not be registered. These files change during every update of JTL-Wawi and therefore must always be re-registered. Generally, the installation process undertakes the registration, but occasionally issues can occur.

    To correct the error, check whether the Microsoft .NET Framework has been installed correctly.  Here you can find out which version of JTL-Wawi is currently required: System requirements for JTL-Wawi.

    If the .NET Framework is installed correctly, reinstalling JTL-Wawi should solve the problem.

    Database not found

    Wenn es zu Problemen mit der SQL-Datenbank kommt, gehen Sie wie folgt vor:

    1. In Control Panel > Administrative Tools > Services, check whether the service SQL Server (JTLWAWI) has been started.
    2. Check whether the database files eazybusiness.mdf and eazybusiness_log.ldf are present.

    SQL database: c:\programme\microsoft sql server\mssql.1\mssql\data

    Wenn mehrere Instanzen von Microsoft SQL Express Server installiert sind, kann der Ordner mssql.1 abweichend sein, zum Beispiel mssql.2 usw.!

    Fehlt die eazybusiness_log.ldf, beenden Sie den Dienst und senden Sie die Datei eazybusiness.mdf (gezippt) als Anhang eines Support-Tickets mit Fehlerbeschreibung an uns. Alternativ können Sie auch selbst versuchen, diese zu generieren.

    This is how you can test the SQL server and the database:

    Go to Start> Run> cmd.exe and enter all bold commands.

    If everything is correct, it should look like this (after -S, write the server name as described in 2).

    osql -S (local)\JTLWAWI -U sa -P sa04jT14 -d master

    First enter use eazybusiness, then go, then quit.

    Senden Sie uns bei Fehlern einen Screenshot (JPG) per Support-Ticket zu.

    Missing eazybusiness_log.ldf file

    The following paragraph describes how to generate the log file for the eazybusiness database for MSDE.

    First, log in to the SQL server with osql -D eazy -U sa -P sa04jt14 -d master.

    Now execute the following commands (in bold):

    1) Reset the status:

    EXEC sp_resetstatus ‘eazybusiness’

    2) Set the database property to “allow updates”:

    exec sp_configure ‘allow updates’, 1 RECONFIGURE WITH OVERRIDE

    3) Set the database to “Emergency Mode”:

    UPDATE master..sysdatabases SET status=-32768 WHERE name=’eazybusiness’

    4) Rebuild the database log file:

    dbcc rebuild_log (‘eazybusiness’,’C:\Programme\Microsoft SQL Server\MSSQL$EAZYSALES\Data\eazybusiness_log.LDF’)

    5) Check database:

    DBCC CHECKDB(‘eazybusiness’)

    6) Reset the status:

    UPDATE master..sysdatabases SET status = 0 WHERE name=’eazybusiness’

    Every command must be confirmed with go!

    Activating SQL log file

    Kommt es in JTL-Wawi zu SQL-Fehlern, insbesondere SQL Error -1 performing exec, hilft das Erstellen einer SQL-Logdatei. Die Einstellungen der ODBC-Verbindung werden unter Start > Systemsteuerung > Verwaltung > Datenquellen ODBC vorgenommen. Wichtig: auf 64-Bit-Windowssystemen muss die ODBC-Verbindung unter C:\Windows\SysWOW64\odbcad32.exe gestartet werden!

    There, select the tab Tracing  and specify the storage location for the log file. Then click Start tracing now.

    Exit JTL-Wawi and restart the software. Reproduce the error.

    Afterwards, deactivate tracing to avoid slowing down JTL-Wawi.

    Error message: User has no rights to access this tenant

    This message is shown when you create a new tenant in JTL-Wawi. By default, even the admin user cannot initially access new tenants.

    1. Log in to the tenant eB-Standard as admin.
    2. In the menu Admin > Benutzer / Rechte (Admin > Users/Rights), go to the dialogue box Benutzer, Benutzergruppen und Rechte anlegen / bearbeiten (Create/Edit users, user groups and rights).
    3. Double-click on the user to whom you want to give access to the newly created tenant. The dialogue box Benutzer anlegen / bearbeiten und Login-Daten einrichten (Create/Edit users and setup login data) opens.
    4. In the pane Firma / Mandant (Company/Tenant), select the newly created tenant. In the pane Firma (Company), select the company for which the tenant database should be activated.
    1. Click Speichern (Save) and close all open dialogue windows.
    2. Then log in to the new tenant again.

    Repairing databases

    Wie können Konsistenzfehler behoben werden?

    Wenn die Datenbank Konsistenzfehler aufweist, muss die Datenbank dringend repariert werden. So sollte vorgegangen werden.

    Benötigt wird Microsoft SQL Server Management Studio, das Sie kostenlos auf der Website von Microsoft herunterladen können.

    After starting Microsoft SQL Server Management Studio, you need to establish the connection to the SQL server.

    • Servername (Server name): (local)\JTLWAWI
    • Authentifizierung (Authentication): SQL server
    • Anmeldename (Login name): sa
    • Passwort (Password): sa04jT14

    Once you are logged in, open the folder Datenbanken (Databases) und select the entry eazybusiness. Right-click on eazybusiness to view the database properties.

    In the dialogue box Datenbankeigenschaften (Database properties), select Optionen (Options). In Weitere Optionen (Other options), go to the entry Zugriff beschränken (Restrict Access) and set it to SINGLE_USER.

    Select Datei > Neu > Abfrage mit aktueller Verbindung (File > New > Query with Current Connection).

    Enter the following into the pane SQLQuery1.sql and then click on ! Ausführen (Run):

    DBCC CHECKDB (eazybusiness,REPAIR_REBUILD)

    Wenn der Fehler nicht behoben werden kann, kann statt REPAIR_REBUILD auch REPAIR_ALLOW_DATA_LOSS benutzt werden. Hierbei kann es aber zu Datenverlust kommen! Dieser Vorgang dauert ein paar Minuten. Werden anschließend in den Meldungen Konsistenzfehler angezeigt, müssen diese Konsistenzfehler auch als behoben aufgezeigt werden. Schließen Sie das Fenster SQLQuery1.sql.

    All that is left to do is to give access to all users. Open the properties of the eazybusiness database. Set the entry Zugriff beschränken (Restrict access) to MULTI_USER.

    Wie lässt sich eine langsame Kundensuche beheben?

    Bei Performance-Problemen der Kundensuche kann die Einstellung Kundensuche reparieren in der Datenbankverwaltung Abhilfe schaffen. Öffnen Sie dazu die JTL-Datenbankverwaltung, wählen Sie den korrekten Mandaten und navigieren Sie zu Mandanten bearbeiten > Datenbank reparieren.

    Weiterführende Informationen zu dieser und weiteren Datenbank-Einstellungen finden Sie unter Datenbankverwaltung zur Administration.

    Running scripts and commands in Microsoft SQL Server Management Studio

    Read:

    Executing scripts and commands via the command line (osql.exe)

    Proceed as follows, to run SQL commands via osql.exe on the computer on which the SQL server is installed:

    Start the Windows Command Prompt with START > Run > cmd.exe.

    Enter the following command:

    osql -D eazy -U sa -P sa04jT14 -d eazybusiness -Q “SQL Befehl”

    Hierbei sollte das Passwort sa04jT14 angepasst werden, wenn Sie das Passwort wie empfohlen geändert haben. Wenn es ein anderer Mandant als eazybusiness ist, muss der richtige Datenbankname des Mandanten hinter -d für eazybusiness eingetragen werden. Den Namen der Datenbank können Sie in der Datenbankverwaltung von JTL-Wawi einsehen.

    FAQ on backups and recoveries

    Manually restoring backups

    Start the Windows Command Prompt with START > Run > cmd.exe.

    osql.exe -D eazy -U sa -P sa04jT14 -d master -Q "restore database eazybusiness from disk='c:\meine.bak' with replace"

    c:\meine.bak should point at your own BAK file.

    Backup cannot be restored

    Wenn es Probleme mit dem Einspielen der Datenbank gibt, spielen Sie die Datenbank mittels Microsoft SQL Server Management Studio wieder ein.

    On some systems, issues can be caused by special characters and umlauts in the storage paths or file names of the backup files. Do not use special characters or umlauts in the names of directories for backup files and for the backup files themselves.

    Backup not possible

    When trying to perform a backup in JTL-Wawi, the following error message appears:

    Meldung: Error -1 performing exec
    SQL State = 00000
    SQL Message=
    Src: Exec Direct

    This is an issue related to the database service rights.

    For security reasons, the database can only be stored in c:\program files\microsoft sql server\mssql.1\mssql\backup.

    Help: In Control Panel > Administrative Tools > Services , look for SQL SERVER (JTLWAWI). Right-click to open the context menu. Select Properties. In the tab Log in, select Local System account and tick the check box in front of Allow service to interact with desktop. Now the service must be closed and started again. Afterwards it should be possible to perform database exports in JTL-Wawi.