Exception DateTime type 40 with prDirect

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Fratod68
Posts: 2
Joined: Thu 08 Jan 2015 11:03

Exception DateTime type 40 with prDirect

Post by Fratod68 » Tue 20 Jan 2015 12:25

Hello Forum,
I have a MSSQL Database and I use UNIDac, last Version at this time.
In the tables I have different Kind of fields such as Date Time and DateTime.
I never changed the Standard Options of the TUniConnection, so I have OLEDBProvider set to prAuto. Everything works fine, but on same Computers I have to install the Native Client, otherwise it doesn't work properly.
So I forced the OLEDBProvider to prDirect, to get rid of the Native Client.
Now I get the EXCEPTION "DateTime type 40" in both DesignTime and Runtime.
What should I care for on Setting the Option to prDirect? Is there a list of limitations?
Many Thanks in Advance,
Francesco

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: Exception DateTime type 40 with prDirect

Post by azyk » Wed 21 Jan 2015 09:20

We have reproduced the 'DateTime type 40' error message for the described case. We will investigate this behavior and inform you about the results.

felixbcastillo
Posts: 33
Joined: Tue 25 Nov 2014 17:26

Re: Exception DateTime type 40 with prDirect

Post by felixbcastillo » Mon 26 Jan 2015 00:15

A similar thing is my case:

I just installed version 6.0.2 and changed nothing, just installed the new version...now I get the same exception ("...datetime type 40...").

I had to install 6.0.1 back then, everything went back to "normal"

I hope this is fixed soon, I trust Devart support very much!

Thank you in advanced...

felixbcastillo
Posts: 33
Joined: Tue 25 Nov 2014 17:26

Re: Exception DateTime type 40 with prDirect

Post by felixbcastillo » Mon 09 Feb 2015 19:41

I changed my DATE fields to DATETIME and now everything works fine!

Also

Changing/Casting DATE values to DATETIME solves (mean while...)

hehe

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: Exception DateTime type 40 with prDirect

Post by azyk » Tue 10 Feb 2015 11:39

We have fixed the error 'DateTime type 40'. This fix will be included in the next UniDAC build.

Post Reply