Hi guys,
I’m trying to troubleshoot a couple of incidents happening with RO/DA (latest) Delphi Tokyo services under Windows Server 2016. Database MSSQL 2014, using FireDac.
First one is, when installed as a service or running as a program on a Windows 2016 Standard disregarding of using integrated security or sql user the active connection will switch to use implicit transactions, but if we run the service against the same Database server but from a Windows 10 machine it will run with implicit transactions off.
WIN2016 (Service) → Win2016(SQL)
– network protocol: TCP/IP
set quoted_identifier on
set arithabort off
set numeric_roundabort off
set ansi_warnings on
set ansi_padding on
set ansi_nulls on
set concat_null_yields_null on
set cursor_close_on_commit off
set implicit_transactions on
set language us_english
set dateformat mdy
set datefirst 7
set transaction isolation level read committed
WIN10 (Service) → Win2016(SQL)
– network protocol: TCP/IP
set quoted_identifier on
set arithabort off
set numeric_roundabort off
set ansi_warnings on
set ansi_padding on
set ansi_nulls on
set concat_null_yields_null on
set cursor_close_on_commit off
set implicit_transactions off
set language us_english
set dateformat mdy
set datefirst 7
set transaction isolation level read committed
This reading where taking out of the Audit Login/Logout of SQL Profiler. We DONT have ANSI DEFAULTS ON that will usually force an implicit transaction, and we use the same service for both. This will definitely kill our performance in production.
The next issue and that is stopping us from releasing into production is that under the same deployment WIN2016(Service) → WIN2016(SQL) we are getting the following error:
An exception was raised on the server: ‘2018-07-24 02:27:13.4860000’ is not a valid date and time
This happens while doing a FILL on a TDAMemDataTable, it is the first record of the table which matches to a DateTime2(7) field with a UTC time store on it.
This error does NOT happen when running the service from a WIN10 machine or a Windows 2008 SR2 connecting to a WIN2016(SQL).
We tried with both active directory and sql users with the same results explained above. I’m running out of ideas on what to try, any asssistance or things I could try will be highly appreciated.
Thank you.