Skip to main content

Notifications

Announcements

No record found.

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

  • Verified answer
    EDV Abteilung Profile Picture
    280 on at
    RE: ODBC and Database Errors, Error accessing database connection.

    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.

  • Suggested answer
    BorisD Profile Picture
    2,826 Moderator on at
    RE: ODBC and Database Errors, Error accessing database connection.

    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!

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

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,011 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans