Problem with "prDirect" provider

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Posts: 10
Joined: Fri 14 Jul 2017 06:53
Location: Switzerland

Problem with "prDirect" provider

Post by DanielNTM » Mon 10 May 2021 10:49


I have a random problem with certain workstations in a company.

When there is no activity for a while on
our software and that a connection has remained open,
the following error appears "OLE DB error occured. Code 80004005h" then the message
"[DBNETLIB] ConnectionWrite (Send ()).] General Network error

I saw on the following link: viewtopic.php?t=41337 that put the provider
the uniconnection that I use in "prdirect" could solve the problem.

The problem is that when I try to put this, all the TMemo of the software become problematic because
he tells me he expects a string type rather than a memo.

Does anyone have any idea where the problem might be?

Posts: 165
Joined: Wed 13 Jan 2016 16:00

Re: Problem with "prDirect" provider

Post by ertank » Mon 10 May 2021 21:05


It is sometimes firewall devices breaking connections after a certain idle time in a corporate environment. It worth to check this out.


Posts: 170
Joined: Sat 23 Feb 2013 18:46

Re: Problem with "prDirect" provider

Post by FCS » Tue 11 May 2021 07:46


To prevent disconnection try:
- check antivirus software /hardware for closing inactive connections.
- turn off hibernation (powercfg -h off having admin rights) and disk turning off.
- check version of Windows, between 1909 and 20H2 might be differences leading to this behaviour.


Devart Team
Posts: 419
Joined: Tue 03 Oct 2017 11:00

Re: Problem with "prDirect" provider

Post by Stellar » Tue 18 May 2021 14:06

Hi Kevin,

Please be informed that “OLE DB error occurred. Code 80004005h” is relate to usage of outdated prSQL provider.
Kindly note that PrSQL uses the preinstalled Windows provider which has limited functionality.
We recommend using a different provider (prDirect, prNativeClient, or prMSOLEDB).
Please try to set Provider to prNativeClient or prDirect, for example:

Code: Select all



MSConnection1.Options.Provider := prDirect; // prNativeClient;

More information on supported providers:

Post Reply