Ole DB Error occured. Code 80040E14h

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
amendes

Ole DB Error occured. Code 80040E14h

Post by amendes » Thu 05 Jan 2006 19:13

When I run a query "select getdate() g, 1 s + 1" for the second time, the error raises is "Ole DB Error occured. Code 80040E14h".
Somebody can help me ?

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Fri 06 Jan 2006 10:41

We get this error on first execution.
This error code means "The command contained one or more errors".
Please specify your exact SDAC version.

Adriano
Posts: 5
Joined: Thu 15 Dec 2005 11:27
Location: Brasil
Contact:

Ole DB Error occured. Code 80040E14h

Post by Adriano » Fri 06 Jan 2006 11:17

Of course
my version is 3.55.2.21

and anoter information, my app is runing on Multi-thread architecture, when I call CoInitializeEx, I call with COINIT_MULTITHREADED.

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Fri 06 Jan 2006 12:50

> my app is runing on Multi-thread architecture

Most likely, it's a source of the incompleteness of the error message.

Adriano
Posts: 5
Joined: Thu 15 Dec 2005 11:27
Location: Brasil
Contact:

Ole DB Error occured. Code 80040E14h

Post by Adriano » Fri 06 Jan 2006 16:05

Ikar

Anoter information about this error.

1. My app works same a WebServer, aswer requests coming from clients.
2. For any thread I have one MSConnection and one MSQuery, and before each call MSConnection.Connect I call CoInitializeEx. So each thead have one CoInitializeEX, and is independent.
3. Is same cases a erros rised is EMSError, but in this cases the error is EOLEDBError. When it is EMSError, I have no problems, but, when it is EOLEDBError, the property Message is "Ole DB Error occured. Code 80040E14h".

This informations can help you to help me ???

Adriano
Posts: 5
Joined: Thu 15 Dec 2005 11:27
Location: Brasil
Contact:

Ole DB Error occured. Code 80040E14h

Post by Adriano » Tue 10 Jan 2006 10:43

Someone cam help me ??

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Tue 10 Jan 2006 10:50

Which problem disturbs you: error in SQL or wrong type of exception?

Adriano
Posts: 5
Joined: Thu 15 Dec 2005 11:27
Location: Brasil
Contact:

Ole DB Error occured. Code 80040E14h

Post by Adriano » Tue 10 Jan 2006 11:17

Ikar

None of then

The error message is my problem, because in same cases one trigger in DB raises an exception when it check data integrity, and the messages is raised to software user, so the message is "Ole DB Error occured. Code 80040E14h" is not a good message for a user.

This is a BUG in SDAC or a plataform limitation ?

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Tue 10 Jan 2006 13:11

This is OLED DB (MS SQL) limitation. Maybe we can provide a solution
to avoid this limitation, but we need a complete small sample to reproduce
the problem. Send us please such sample.

Adriano
Posts: 5
Joined: Thu 15 Dec 2005 11:27
Location: Brasil
Contact:

Post by Adriano » Mon 16 Jan 2006 13:33

Ikar

When I building a sample to sendo to you, I change a bit the original code. With this, my program aparently woks well.

Now, for each "Thread".Execute procedure called, I call a CoInitializeEx in begin and call CoUninitialize before the end of procedure.

My application recive many request in a short time, it works well ???

Post Reply