web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

ODBC and Database Errors, Error accessing database connection.

(0) ShareShare
ReportReport
Posted on by 280

Since last week we get multiple SQL errors with our AX 4 SP2 and SQL Server 2008R2 environment.

Some Sessions where I run batch jobs for multiple hours on the server at night don't have any problems. Other batch-session on the same server stop within irregular intervals. Sometimes they run over 4 hours, sometimes they stop after 15 minutes.

In the AOS Logfile it seems that the errors always appear a few seconds after full hours, for example at 03:00:33, 09:00:59, 19:00:56, 22:01:34.

I don't have batch-jobs in Dynamics AX which run at that times, so I think it's a problem with the sql server, maybe when the sql server is making backups for the transaction files.

The errors also appear on some clients running Windows 10. They delete the error message in the client an continue working in the same session without any problems.

Any ideas what could be the problem or where I can start searching for errors?

AOS Logfile:

Ein Fehler ist aufgetreten:
Benutzerkennung: Admin
Uhrzeit: 09:01:10 31.10.2018
Version: Microsoft Dynamics 4.0 (Erstellungsnummer 2503.362)
Datenbank: Microsoft SQL Server
SQL-Anweisung: [Kennung=0, Wiederverwendet=Nein]
Fehlertext: [Microsoft][ODBC Driver Manager] Die Verbindung ist nicht geöffnet
SQL-Fehlercode: -101016

Eventlog:

Object Server 03: Fatal SQL condition during login. Error message: "[Microsoft][ODBC SQL Server Driver]Anmeldungstimeout abgelaufen"

Object Server 03: SQL diagnostics: [Microsoft][ODBC SQL Server Driver]Anmeldungstimeout abgelaufen. Connect information was: Userid = [], Database = [Dynamics_AX_4_DATABASE], Server = [SQLSERVER], DSN = [], Other = []

Object Server 03: The database reported (session 2 (NAME)): [Microsoft][ODBC Driver Manager] Die Verbindung ist nicht geöffnet. The SQL statement was: "SELECT  ...

Object Server 03: Dialog issued for client-less session 2: Cannot select a record in User Information (UserInfo). User ID: , .
Error accessing database connection.

Error Message in the Client:

SQL-Fehlerbeschreibung: [Microsoft][ODBC Driver Manager] Die Verbindung ist nicht geöffnet

SQL-Anweisung: SELECT ...

Ein Datensatz in ... kann nicht ausgewählt werden. Priorität: 0, . Fehler beim Zugriff auf die Datenbankverbindung.

SQL-Fehlerbeschreibung: [Microsoft][ODBC Driver Manager] Die Verbindung ist nicht geöffnet

Ein Datensatz in ... kann nicht ausgewählt werden. Priorität: 0, . Fehler beim Zugriff auf die Datenbankverbindung.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    BorisD Profile Picture
    2,826 Moderator on at

    Hello EDV Abteilung,

    Has your organization recently disabled TLS 1.0 on the servers. If so you might want to confirm all the effected servers have the TLS 2.0 supporting SQL components installed. for example they would require the ODBC 11 drivers. Check out the blog below for some additional information.

    community.dynamics.com/.../disabling-tls1-0-and-the-impact-on-dynamics-ax-2012

    Hope this helps!

  • Verified answer
    EDV Abteilung Profile Picture
    280 on at

    I found out the problem. It was caused by a 100% CPU workload caused by another SQL instance running on the same database server which was used for our WSUS Server. The 100% CPU workload appear every full hour when the server checks for new updates. Then the Dynamics database could not execute the querys an run into a timeout. After stopping the WSUS i don't have problems anymore.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#1
Nakul Profile Picture

Nakul 2

#3
Umar-Usman Profile Picture

Umar-Usman 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans